Class OverrideFileEntryReader
- java.lang.Object
-
- com.webcodepro.applecommander.util.readerwriter.OverrideFileEntryReader
-
- All Implemented Interfaces:
FileEntryReader
public class OverrideFileEntryReader extends java.lang.Object implements FileEntryReader
Allow programmatic control of what is in the results of the file entry. Useful for translating from raw data. It can also be used to layer in results and overrides.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OverrideFileEntryReader.Builder
-
Constructor Summary
Constructors Constructor Description OverrideFileEntryReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OverrideFileEntryReader.Builder
builder()
java.util.Optional<java.lang.Integer>
getAuxiliaryType()
java.util.Optional<java.lang.Integer>
getBinaryAddress()
The address embedded in binary objects.java.util.Optional<java.lang.Integer>
getBinaryLength()
The length embedded in binary, Applesoft, Integer BASIC objects.java.util.Optional<java.util.Date>
getCreationDate()
java.util.Optional<byte[]>
getFileData()
java.util.Optional<java.lang.String>
getFilename()
java.util.Optional<java.util.Date>
getLastModificationDate()
java.util.Optional<java.lang.String>
getProdosFiletype()
java.util.Optional<byte[]>
getResourceData()
java.util.Optional<java.lang.Boolean>
isLocked()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.webcodepro.applecommander.util.readerwriter.FileEntryReader
equals
-
-
-
-
Method Detail
-
getFilename
public java.util.Optional<java.lang.String> getFilename()
- Specified by:
getFilename
in interfaceFileEntryReader
-
getProdosFiletype
public java.util.Optional<java.lang.String> getProdosFiletype()
- Specified by:
getProdosFiletype
in interfaceFileEntryReader
-
isLocked
public java.util.Optional<java.lang.Boolean> isLocked()
- Specified by:
isLocked
in interfaceFileEntryReader
-
getFileData
public java.util.Optional<byte[]> getFileData()
- Specified by:
getFileData
in interfaceFileEntryReader
-
getResourceData
public java.util.Optional<byte[]> getResourceData()
- Specified by:
getResourceData
in interfaceFileEntryReader
-
getBinaryAddress
public java.util.Optional<java.lang.Integer> getBinaryAddress()
Description copied from interface:FileEntryReader
The address embedded in binary objects. This varies by DOS's so is split apart.- Specified by:
getBinaryAddress
in interfaceFileEntryReader
-
getBinaryLength
public java.util.Optional<java.lang.Integer> getBinaryLength()
Description copied from interface:FileEntryReader
The length embedded in binary, Applesoft, Integer BASIC objects. This varies by DOS's so is split apart.- Specified by:
getBinaryLength
in interfaceFileEntryReader
-
getAuxiliaryType
public java.util.Optional<java.lang.Integer> getAuxiliaryType()
- Specified by:
getAuxiliaryType
in interfaceFileEntryReader
-
getCreationDate
public java.util.Optional<java.util.Date> getCreationDate()
- Specified by:
getCreationDate
in interfaceFileEntryReader
-
getLastModificationDate
public java.util.Optional<java.util.Date> getLastModificationDate()
- Specified by:
getLastModificationDate
in interfaceFileEntryReader
-
builder
public static OverrideFileEntryReader.Builder builder()
-
-