Class BinaryIIFileEntry

java.lang.Object
org.applecommander.archive.binaryii.BinaryIIFileEntry
All Implemented Interfaces:
BinaryIIConstants, FileEntry, Container

public class BinaryIIFileEntry extends Object implements FileEntry, BinaryIIConstants
  • Method Details

    • getParent

      public Directory getParent()
      The Directory that holds this file.
      Specified by:
      getParent in interface FileEntry
    • isDeleted

      public boolean isDeleted()
      Indicates if this FileEntry is deleted.
      Specified by:
      isDeleted in interface FileEntry
    • getFileStore

      public FileStore getFileStore()
      Returns the FileStore that this Entry originates from.
      Specified by:
      getFileStore in interface FileEntry
    • getName

      public String getName()
      Returns the name of this entry: either a directory name or a file name. This does not contain any directory components -- strictly the name of this entry. Note that depending on context, this may be a computed field.
      Specified by:
      getName in interface FileEntry
    • getSize

      public long getSize()
      Returns the size, in bytes, of this item. It may be approximate (based off a sector count, for instance).
      Specified by:
      getSize in interface FileEntry
    • getAccess

      public int getAccess()
    • getAccessText

      public String getAccessText()
    • getFileType

      public int getFileType()
    • getFileTypeText

      public String getFileTypeText()
    • getAuxType

      public int getAuxType()
    • getStorageType

      public int getStorageType()
    • getStorageTypeText

      public String getStorageTypeText()
    • getBlocksUsed

      public int getBlocksUsed()
    • getCreateDate

      public Date getCreateDate()
    • getModificationDate

      public Date getModificationDate()
    • getOSType

      public int getOSType()
    • getOSTypeText

      public String getOSTypeText()
    • getDataFlags

      public int getDataFlags()
    • getDataFlagsText

      public String getDataFlagsText()
    • getVersion

      public int getVersion()
    • getDataFork

      public DataBuffer getDataFork()
      Return the file's data. This does not include any metadata that may be embedded with the file.
      Specified by:
      getDataFork in interface FileEntry
    • getProdosAttributes

      public ProdosAttributes getProdosAttributes()
      Interpret the FileEntry as if it were on a ProDOS volume. The intention is that ProDOS ended up being the common denominator in many tools and formats, so this allows each file store to manage the interpretation itself.
      Specified by:
      getProdosAttributes in interface FileEntry
    • getContentType

      public ContentType getContentType()
      Description copied from interface: FileEntry
      Return the type of content, if known. It should never return null; use UNKNOWN if not known.
      Specified by:
      getContentType in interface FileEntry
      See Also:
    • get

      public <T> Optional<T> get(Class<T> iface)
      Specified by:
      get in interface Container