Class DosFileEntryReaderWriter
- java.lang.Object
-
- com.webcodepro.applecommander.util.readerwriter.DosFileEntryReaderWriter
-
- All Implemented Interfaces:
FileEntryReader,FileEntryWriter
public class DosFileEntryReaderWriter extends java.lang.Object implements FileEntryReader, FileEntryWriter
-
-
Constructor Summary
Constructors Constructor Description DosFileEntryReaderWriter(DosFileEntry fileEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<byte[]>getFileData()java.util.Optional<java.lang.String>getFilename()java.util.Optional<java.lang.String>getProdosFiletype()java.util.Optional<java.lang.Boolean>isLocked()voidsetBinaryAddress(int address)The address embedded in binary objects.voidsetBinaryLength(int length)The length embedded in binary, Applesoft, Integer BASIC objects.voidsetFileData(byte[] data)voidsetFilename(java.lang.String filename)voidsetLocked(boolean flag)voidsetProdosFiletype(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, getAuxiliaryType, getCreationDate, getLastModificationDate, getResourceData
-
Methods inherited from interface com.webcodepro.applecommander.util.readerwriter.FileEntryWriter
setAuxiliaryType, setCreationDate, setFileData, setLastModificationDate
-
-
-
-
Constructor Detail
-
DosFileEntryReaderWriter
public DosFileEntryReaderWriter(DosFileEntry fileEntry)
-
-
Method Detail
-
getFilename
public java.util.Optional<java.lang.String> getFilename()
- Specified by:
getFilenamein interfaceFileEntryReader
-
setFilename
public void setFilename(java.lang.String filename)
- Specified by:
setFilenamein interfaceFileEntryWriter
-
getProdosFiletype
public java.util.Optional<java.lang.String> getProdosFiletype()
- Specified by:
getProdosFiletypein interfaceFileEntryReader
-
setProdosFiletype
public void setProdosFiletype(java.lang.String filetype)
- Specified by:
setProdosFiletypein interfaceFileEntryWriter
-
isLocked
public java.util.Optional<java.lang.Boolean> isLocked()
- Specified by:
isLockedin interfaceFileEntryReader
-
setLocked
public void setLocked(boolean flag)
- Specified by:
setLockedin interfaceFileEntryWriter
-
getFileData
public java.util.Optional<byte[]> getFileData()
- Specified by:
getFileDatain interfaceFileEntryReader
-
setFileData
public void setFileData(byte[] data)
- Specified by:
setFileDatain interfaceFileEntryWriter
-
getBinaryAddress
public java.util.Optional<java.lang.Integer> getBinaryAddress()
Description copied from interface:FileEntryReaderThe address embedded in binary objects. This varies by DOS's so is split apart.- Specified by:
getBinaryAddressin interfaceFileEntryReader
-
setBinaryAddress
public void setBinaryAddress(int address)
Description copied from interface:FileEntryWriterThe address embedded in binary objects. This varies by DOS's so is split apart.- Specified by:
setBinaryAddressin interfaceFileEntryWriter
-
getBinaryLength
public java.util.Optional<java.lang.Integer> getBinaryLength()
Description copied from interface:FileEntryReaderThe length embedded in binary, Applesoft, Integer BASIC objects. This varies by DOS's so is split apart.- Specified by:
getBinaryLengthin interfaceFileEntryReader
-
setBinaryLength
public void setBinaryLength(int length)
Description copied from interface:FileEntryWriterThe length embedded in binary, Applesoft, Integer BASIC objects. This varies by DOS's so is split apart.- Specified by:
setBinaryLengthin interfaceFileEntryWriter
-
-