Class ImportSpecification

java.lang.Object
com.webcodepro.applecommander.ui.ImportSpecification

public class ImportSpecification extends Object
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.
  • Constructor Details

    • ImportSpecification

      public ImportSpecification(ImportSpecification orig)
    • ImportSpecification

      public ImportSpecification(String sourceFilename, String targetFilename)
      Create the ImportSpecification with default values.
    • ImportSpecification

      public ImportSpecification(String sourceFilename, String targetFilename, String filetype)
      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

      public String getFiletype()
      Returns the filetype.
      Returns:
      String
    • getSourceFilename

      public String getSourceFilename()
      Returns the sourceFilename.
      Returns:
      String
    • getTargetFilename

      public String getTargetFilename()
      Returns the targetFilename.
      Returns:
      String
    • setAddress

      public void setAddress(int address)
      Sets the address.
      Parameters:
      address - The address to set
    • setFiletype

      public void setFiletype(String filetype)
      Sets the filetype.
      Parameters:
      filetype - The filetype to set
    • setTargetFilename

      public void setTargetFilename(String targetFilename)
      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.