Class ProdosFileEntryReaderWriter
- java.lang.Object
-
- com.webcodepro.applecommander.util.readerwriter.ProdosFileEntryReaderWriter
-
- All Implemented Interfaces:
FileEntryReader
,FileEntryWriter
public class ProdosFileEntryReaderWriter extends java.lang.Object implements FileEntryReader, FileEntryWriter
-
-
Constructor Summary
Constructors Constructor Description ProdosFileEntryReaderWriter(ProdosFileEntry fileEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<java.lang.Boolean>
isLocked()
void
setAuxiliaryType(int auxType)
void
setBinaryAddress(int address)
The address embedded in binary objects.void
setBinaryLength(int length)
The length embedded in binary, Applesoft, Integer BASIC objects.void
setCreationDate(java.util.Date date)
void
setFileData(byte[] data)
void
setFileData(byte[] data, byte[] resource)
void
setFilename(java.lang.String filename)
void
setLastModificationDate(java.util.Date date)
void
setLocked(boolean flag)
void
setProdosFiletype(java.lang.String filetype)
-
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, getResourceData
-
-
-
-
Constructor Detail
-
ProdosFileEntryReaderWriter
public ProdosFileEntryReaderWriter(ProdosFileEntry fileEntry)
-
-
Method Detail
-
getFilename
public java.util.Optional<java.lang.String> getFilename()
- Specified by:
getFilename
in interfaceFileEntryReader
-
setFilename
public void setFilename(java.lang.String filename)
- Specified by:
setFilename
in interfaceFileEntryWriter
-
getProdosFiletype
public java.util.Optional<java.lang.String> getProdosFiletype()
- Specified by:
getProdosFiletype
in interfaceFileEntryReader
-
setProdosFiletype
public void setProdosFiletype(java.lang.String filetype)
- Specified by:
setProdosFiletype
in interfaceFileEntryWriter
-
isLocked
public java.util.Optional<java.lang.Boolean> isLocked()
- Specified by:
isLocked
in interfaceFileEntryReader
-
setLocked
public void setLocked(boolean flag)
- Specified by:
setLocked
in interfaceFileEntryWriter
-
getFileData
public java.util.Optional<byte[]> getFileData()
- Specified by:
getFileData
in interfaceFileEntryReader
-
setFileData
public void setFileData(byte[] data)
- Specified by:
setFileData
in interfaceFileEntryWriter
-
setFileData
public void setFileData(byte[] data, byte[] resource)
- Specified by:
setFileData
in interfaceFileEntryWriter
-
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
-
setBinaryAddress
public void setBinaryAddress(int address)
Description copied from interface:FileEntryWriter
The address embedded in binary objects. This varies by DOS's so is split apart.- Specified by:
setBinaryAddress
in interfaceFileEntryWriter
-
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
-
setBinaryLength
public void setBinaryLength(int length)
Description copied from interface:FileEntryWriter
The length embedded in binary, Applesoft, Integer BASIC objects. This varies by DOS's so is split apart.- Specified by:
setBinaryLength
in interfaceFileEntryWriter
-
getAuxiliaryType
public java.util.Optional<java.lang.Integer> getAuxiliaryType()
- Specified by:
getAuxiliaryType
in interfaceFileEntryReader
-
setAuxiliaryType
public void setAuxiliaryType(int auxType)
- Specified by:
setAuxiliaryType
in interfaceFileEntryWriter
-
getCreationDate
public java.util.Optional<java.util.Date> getCreationDate()
- Specified by:
getCreationDate
in interfaceFileEntryReader
-
setCreationDate
public void setCreationDate(java.util.Date date)
- Specified by:
setCreationDate
in interfaceFileEntryWriter
-
getLastModificationDate
public java.util.Optional<java.util.Date> getLastModificationDate()
- Specified by:
getLastModificationDate
in interfaceFileEntryReader
-
setLastModificationDate
public void setLastModificationDate(java.util.Date date)
- Specified by:
setLastModificationDate
in interfaceFileEntryWriter
-
-