Class ShrinkitFileEntry
java.lang.Object
org.applecommander.archive.shrinkit.ShrinkitFileEntry
-
Constructor Summary
ConstructorsConstructorDescriptionShrinkitFileEntry(ShrinkitFileStore fileStore, org.applecommander.shrinkit.HeaderBlock headerBlock) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> longlongReturn the type of content, if known.Return the file's data.intlongReturns theFileStorethat thisEntryoriginates from.intintgetName()Returns the name of this entry: either a directory name or a file name.The parentDirectory, if applicable.Interpret theFileEntryas if it were on a ProDOS volume.Return the resource fork data.intlonggetSize()Returns the size, in bytes, of this item.intbooleanIndicates if thisFileEntryis deleted.
-
Constructor Details
-
ShrinkitFileEntry
public ShrinkitFileEntry(ShrinkitFileStore fileStore, org.applecommander.shrinkit.HeaderBlock headerBlock)
-
-
Method Details
-
getParent
-
isDeleted
-
getFileStore
Description copied from interface:FileEntryReturns theFileStorethat thisEntryoriginates from.- Specified by:
getFileStorein interfaceFileEntry
-
getName
Description copied from interface:FileEntryReturns 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. -
getSize
-
getFileTypeText
-
getStorageType
public int getStorageType() -
getStorageTypeText
-
getExtraType
public long getExtraType() -
getArchiveWhen
-
getThreadFormatText
-
getCompressedSize
public long getCompressedSize() -
getDataForkCrc
public int getDataForkCrc() -
getResourceForkCrc
public int getResourceForkCrc() -
getFileSysId
public int getFileSysId() -
getFileSysIdText
-
getFileSysInfo
public int getFileSysInfo() -
getAccess
public long getAccess() -
getAccessText
-
getCreateWhen
-
getModWhen
-
getDataFork
Description copied from interface:FileEntryReturn the file's data. This does not include any metadata that may be embedded with the file.- Specified by:
getDataForkin interfaceFileEntry
-
getProdosAttributes
Description copied from interface:FileEntryInterpret 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
-
getResourceFork
Description copied from interface:FileEntryReturn the resource fork data. If there is no resource fork (or a resource fork is not supported), then this returns an emptyOptional.- Specified by:
getResourceForkin 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
-