Class FileEntrySource
java.lang.Object
org.applecommander.source.FileEntrySource
- All Implemented Interfaces:
CapabilityProvider, HintProvider, Source, Container, InformationProvider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) Helps identify capabilities of the existing component.<T> Optional<T> getName()The name of the source.intgetSize()Indicates the physical size of this image on disk.booleanIndicates if this source has changed.voidhasChanged(boolean hasChanged) Sets the changed indicator.booleanRead all bytes from this source.readBytes(int offset, int length) Read a range of bytes from this source.voidreplaceAllBytes(DataBuffer data) Replace ALL bytes in this Source.voidwriteBytes(int offset, DataBuffer data) Write bytes to this source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HintProvider
isAnyMethods inherited from interface Source
extensionLike, isApproxBetween, isApproxEQ, save
-
Constructor Details
-
FileEntrySource
-
-
Method Details
-
can
Description copied from interface:CapabilityProviderHelps identify capabilities of the existing component.- Specified by:
canin interfaceCapabilityProvider
-
get
-
is
- Specified by:
isin interfaceHintProvider
-
getSize
-
getName
-
readAllBytes
Description copied from interface:SourceRead all bytes from this source.- Specified by:
readAllBytesin interfaceSource
-
readBytes
Description copied from interface:SourceRead a range of bytes from this source. -
writeBytes
Description copied from interface:SourceWrite bytes to this source. Updates the changed status.- Specified by:
writeBytesin interfaceSource
-
replaceAllBytes
Description copied from interface:SourceReplace ALL bytes in this Source.- Specified by:
replaceAllBytesin interfaceSource
-
hasChanged
public boolean hasChanged()Description copied from interface:SourceIndicates if this source has changed.- Specified by:
hasChangedin interfaceSource
-
hasChanged
public void hasChanged(boolean hasChanged) Description copied from interface:SourceSets the changed indicator.- Specified by:
hasChangedin interfaceSource
-
information
- Specified by:
informationin interfaceInformationProvider
-