Class BinsciiFileEntry
java.lang.Object
org.applecommander.archive.binscii.BinsciiFileEntry
- All Implemented Interfaces:
BinsciiConstants, FileEntry, Container
-
Field Summary
Fields inherited from interface BinsciiConstants
OFFSET_ACCESS, OFFSET_AUXTYPE, OFFSET_BLKSIZE, OFFSET_CRC, OFFSET_CREDATE, OFFSET_CRETIME, OFFSET_FILESIZE, OFFSET_FILETYPE, OFFSET_MODDATE, OFFSET_MODTIME, OFFSET_SEGLEN, OFFSET_SEGSTART, OFFSET_STORETYPE, SENTINAL -
Constructor Summary
ConstructorsConstructorDescriptionBinsciiFileEntry(BinsciiFileStore fileStore, String name, DataBuffer header, DataBuffer filedata) -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> Optional<T> intintintReturn the type of content, if known.Return the file's data.Returns theFileStorethat thisEntryoriginates from.intgetName()Returns the name of this entry: either a directory name or a file name.TheDirectorythat 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
-
Constructor Details
-
BinsciiFileEntry
public BinsciiFileEntry(BinsciiFileStore fileStore, String name, DataBuffer header, DataBuffer filedata)
-
-
Method Details
-
getParent
-
isDeleted
-
getFileStore
Returns theFileStorethat thisEntryoriginates from.- Specified by:
getFileStorein interfaceFileEntry
-
getName
-
getSize
-
getDataFork
Return the file's data. This does not include any metadata that may be embedded with the file.- Specified by:
getDataForkin interfaceFileEntry
-
getAccess
public int getAccess() -
getAccessText
-
getFileType
public int getFileType() -
getFileTypeText
-
getAuxType
public int getAuxType() -
getStorageType
public int getStorageType() -
getStorageTypeText
-
getTotalBlocks
public int getTotalBlocks() -
getCreated
-
getModified
-
getChecksum
public int getChecksum() -
checksumMatches
public boolean checksumMatches() -
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:
-
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
-
get
-