content
Storage for the
Node
s.T
- Archive<T>
, Assignable
, ArchiveFormatAssociable
, Configurable
, Identifiable
MemoryMapArchiveImpl
private final Map<ArchivePath,NodeImpl>
Node
s.private final List<ArchiveEventHandler>
private final Map<ArchivePath,ArchiveAsset>
ArchiveAsset
s.MemoryMapArchiveBase(String archiveName,
Configuration configuration)
Archive
with the provided name.MemoryMapArchiveBase(Configuration configuration)
Archive.getName()
per instance.add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
add(Asset asset,
ArchivePath path)
addAsDirectory(ArchivePath path)
private T
addAsset(ArchivePath path,
Asset asset)
addHandlers(ArchiveEventHandler... handlers)
private void
addNewNode(ArchivePath path,
Asset handledAsset)
boolean
boolean
contains(ArchivePath path)
delete(ArchivePath path)
get(ArchivePath path)
Node
located at the specified pathgetContent(Filter<ArchivePath> filter)
private Node
getNestedNode(ArchivePath path)
private ArchivePath
getNestedPath(ArchivePath fullPath,
ArchivePath basePath)
private Asset
invokeHandlers(ArchivePath path,
Asset asset)
private boolean
nestedContains(ArchivePath path)
private NodeImpl
obtainParent(ArchivePath path)
private Node
removeNodeRecursively(NodeImpl node,
ArchivePath path)
private boolean
startsWith(ArchivePath fullPath,
ArchivePath startingPath)
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, as, covariantReturn, equals, filter, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getConfiguration, getId, getName, hashCode, merge, merge, merge, merge, merge, merge, move, move, setId, shallowCopy, shallowCopy, toString, toString, toString, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, filter, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getId, getName, merge, merge, merge, merge, merge, merge, move, move, shallowCopy, shallowCopy, toString, toString, toString, writeTo
as
Node
s.ArchiveAsset
s. Used to help get access to nested archive content.Archive.getName()
per instance.configuration
- The configuration for this archiveIllegalArgumentException
- If the configuration is not specifiedArchive
with the provided name.archiveName
- configuration
- The configuration for this archiveIllegalArgumentException
- If the name or configuration is not specifiedaddAsDirectory
in interface Archive<T extends Archive<T>>
path
- The path to addIllegalArgumentException
- If no path was specifiedaddHandlers
in interface Archive<T extends Archive<T>>
Node
in the Archive
at the specified ArchivePath
. If the path is a directory,
recursively removes all contents. If the path does not exist, return null.node
- the node to remove recursivelypath
- the path denoting the specified nodeNode
in the Archive
at the ArchivePath
indicated by the specified String
archivePath. If the path is a directory, recursively removes all contents. If the path does not exist, return
null.Node
located at the specified pathgetContent
in interface Archive<T extends Archive<T>>
getContent
in interface Archive<T extends Archive<T>>
path
- fullPath
- startingPath
- fullPath
- basePath
- Node
from the content of the Archive
. If the Node
doesn�t exists in
the specified location, it is created and added to the Archive
. The same happens to all its non-existing
parents. However, if the Node
is an asset, an IllegalArchivePathException is thrown.path
- The ArchivePath
from which we are obtaining the Node
Node
in the specified pathIllegalArchivePathException
- if the node is an Asset