Class UnixFSResourceEntryExisting
java.lang.Object
dev.getelements.elements.rt.transact.AbstractResourceEntry
dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryBase
dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryExisting
- All Implemented Interfaces:
ResourceEntry,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.rt.transact.ResourceEntry
ResourceEntry.OperationalStrategy -
Field Summary
Fields inherited from class dev.getelements.elements.rt.transact.AbstractResourceEntry
operationalStrategy -
Constructor Summary
ConstructorsConstructorDescriptionUnixFSResourceEntryExisting(UnixFSUtils unixFSUtils, UnixFSHasFilesystemPath hasFilesystemPath, ResourceEntry.OperationalStrategy operationalStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closers thisResourceEntryreleasing any underlying resources associated with theResourceEntry.Finds the original Resource contents.Finds theResourceIdassociated with the node, or a result equivalent toOptional.empty()if no such resource id exists.Gets the internal immutable list of reverse links.booleanChecks if the list of reverse links are the original set of reverse links.Methods inherited from class dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryBase
flush, getUnixFSUtilsMethods inherited from class dev.getelements.elements.rt.transact.AbstractResourceEntry
delete, findResourceId, getReversePathsImmutable, isOriginalContents, link, unlink, updateResourceContentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.transact.ResourceEntry
findResourceContents, getOriginalResourceId, getResourceId, isAbsent, isPresent, loadResourceContents
-
Constructor Details
-
UnixFSResourceEntryExisting
public UnixFSResourceEntryExisting(UnixFSUtils unixFSUtils, UnixFSHasFilesystemPath hasFilesystemPath, ResourceEntry.OperationalStrategy operationalStrategy) throws IOException - Throws:
IOException
-
-
Method Details
-
findOriginalResourceId
Description copied from interface:ResourceEntryFinds theResourceIdassociated with the node, or a result equivalent toOptional.empty()if no such resource id exists.- Returns:
- an
Optional<ResourceId>containing theResourceId
-
getOriginalReversePathsImmutable
Description copied from interface:ResourceEntryGets the internal immutable list of reverse links. Will always return an emptySetif no links exist.- Returns:
- the reverse links, never null.
-
findOriginalResourceContents
Description copied from interface:ResourceEntryFinds the original Resource contents.- Returns:
- the
OptionalofResourceContents
-
isOriginalReversePaths
public boolean isOriginalReversePaths()Description copied from interface:ResourceEntryChecks if the list of reverse links are the original set of reverse links.- Specified by:
isOriginalReversePathsin interfaceResourceEntry- Overrides:
isOriginalReversePathsin classAbstractResourceEntry- Returns:
- true if the links are original
-
close
public void close()Description copied from interface:ResourceEntryClosers thisResourceEntryreleasing any underlying resources associated with theResourceEntry.
-