Package com.webcodepro.applecommander.ui
Class ImportSpecification
java.lang.Object
com.webcodepro.applecommander.ui.ImportSpecification
This class represents the Import specification for a single
file. It is generic, and could/should be used as a common
user interface bean.
Created on Jan 25, 2003.
Created on Jan 25, 2003.
-
Constructor Summary
ConstructorsConstructorDescriptionImportSpecification(String sourceFilename, String targetFilename) Create the ImportSpecification with default values.ImportSpecification(String sourceFilename, String targetFilename, String filetype) Create the ImportSpecification with default values. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the address.byte[]Get the binary file data (only done with validated file types).Returns the filetype.Returns the sourceFilename.Returns the targetFilename.booleanAnswers true if this specification has file data attached.booleanIndicates if a filetype has been set.booleanAnswers true if the file should be imported as a raw file - that is, no doctoring of the file bytes at all.voidsetAddress(int address) Sets the address.voidsetFileData(byte[] fileData) Set the binary file data (only done with validated file types).voidsetFiletype(String filetype) Sets the filetype.voidsetRawFileImport(boolean rawFileImport) Sets raw file import flag.voidsetTargetFilename(String targetFilename) Sets the targetFilename.
-
Constructor Details
-
ImportSpecification
-
ImportSpecification
Create the ImportSpecification with default values. -
ImportSpecification
Create the ImportSpecification with default values.
-
-
Method Details
-
getAddress
public int getAddress()Returns the address.- Returns:
- int
-
hasFiletype
public boolean hasFiletype()Indicates if a filetype has been set. -
getFiletype
Returns the filetype.- Returns:
- String
-
getSourceFilename
Returns the sourceFilename.- Returns:
- String
-
getTargetFilename
Returns the targetFilename.- Returns:
- String
-
setAddress
public void setAddress(int address) Sets the address.- Parameters:
address- The address to set
-
setFiletype
Sets the filetype.- Parameters:
filetype- The filetype to set
-
setTargetFilename
Sets the targetFilename.- Parameters:
targetFilename- The targetFilename to set
-
isRawFileImport
public boolean isRawFileImport()Answers true if the file should be imported as a raw file - that is, no doctoring of the file bytes at all. Particularly important in operating systems like DOS 3.3. -
setRawFileImport
public void setRawFileImport(boolean rawFileImport) Sets raw file import flag. -
setFileData
public void setFileData(byte[] fileData) Set the binary file data (only done with validated file types). -
getFileData
public byte[] getFileData()Get the binary file data (only done with validated file types). -
hasFileData
public boolean hasFileData()Answers true if this specification has file data attached.
-