Class BinaryIIFileEntry
java.lang.Object
org.applecommander.archive.binaryii.BinaryIIFileEntry
- All Implemented Interfaces:
BinaryIIConstants, FileEntry, Container
-
Field Summary
Fields inherited from interface BinaryIIConstants
ACCESS_CODE, AUX_TYPE, BLOCK_SIZE, CREATION_DATE, CREATION_TIME, DATA_FLAGS, EOF, FILE_NAME, FILE_SIZE, FILE_TYPE, GSOS_ACCESS, GSOS_AUX_TYPE, GSOS_EOF, GSOS_FILE_SIZE, GSOS_FILE_TYPE, GSOS_STORAGE, ID_BYTES1, ID_BYTES1_OFFSET, ID_BYTES2, ID_BYTES2_OFFSET, MODIFICATION_DATE, MODIFICATION_TIME, NATIVE_FILE_TYPE, NATIVE_NAME, OS_TYPE, PHANTOM_FILE_FLAG, REMAINING_FILES, STORAGE_TYPE, VERSION -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> intintintReturn the type of content, if known.intReturn the file's data.Returns theFileStorethat thisEntryoriginates from.intgetName()Returns the name of this entry: either a directory name or a file name.intTheDirectorythat holds this file.Interpret theFileEntryas if it were on a ProDOS volume.longgetSize()Returns the size, in bytes, of this item.intintbooleanIndicates if thisFileEntryis deleted.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileEntry
getResourceFork
-
Method Details
-
getParent
-
isDeleted
-
getFileStore
Returns theFileStorethat thisEntryoriginates from.- Specified by:
getFileStorein interfaceFileEntry
-
getName
-
getSize
-
getAccess
public int getAccess() -
getAccessText
-
getFileType
public int getFileType() -
getFileTypeText
-
getAuxType
public int getAuxType() -
getStorageType
public int getStorageType() -
getStorageTypeText
-
getBlocksUsed
public int getBlocksUsed() -
getCreateDate
-
getModificationDate
-
getOSType
public int getOSType() -
getOSTypeText
-
getDataFlags
public int getDataFlags() -
getDataFlagsText
-
getVersion
public int getVersion() -
getDataFork
Return the file's data. This does not include any metadata that may be embedded with the file.- Specified by:
getDataForkin interfaceFileEntry
-
getProdosAttributes
Interpret theFileEntryas 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:
getProdosAttributesin interfaceFileEntry
-
getContentType
Description copied from interface:FileEntryReturn the type of content, if known. It should never return null; use UNKNOWN if not known.- Specified by:
getContentTypein interfaceFileEntry- See Also:
-
get
-