public class MemoryNamedAsset extends MemoryAsset implements NamedAsset
MemoryAsset
implementation complying to the NamedAsset
API; thread-safe.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Constructor and Description |
---|
MemoryNamedAsset(ArchivePath path)
Sets the name of this
MemoryNamedAsset via ArchivePath.get() of the specified (required)
ArchivePath |
MemoryNamedAsset(java.nio.file.Path path)
|
MemoryNamedAsset(java.lang.String name)
Sets the name of this
MemoryNamedAsset to the specified (required) String name |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Specifies the name (ArchivePath) for the archive
|
close, isOpen, openStream, position, position, read, size, truncate, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openStream
public MemoryNamedAsset(java.lang.String name) throws java.lang.IllegalArgumentException
MemoryNamedAsset
to the specified (required) String
namepath
- java.lang.IllegalArgumentException
- If the name is not specifiedpublic MemoryNamedAsset(java.nio.file.Path path) throws java.lang.IllegalArgumentException
path
- java.lang.IllegalArgumentException
- If the path is not specifiedpublic MemoryNamedAsset(ArchivePath path) throws java.lang.IllegalArgumentException
MemoryNamedAsset
via ArchivePath.get()
of the specified (required)
ArchivePath
path
- java.lang.IllegalArgumentException
- If the path is not specifiedpublic java.lang.String getName()
getName
in interface NamedAsset
String
representation of the ArchivePathNamedAsset.getName()