public class MemoryNamedAsset extends MemoryAsset implements NamedAsset
MemoryAsset
implementation complying to the NamedAsset
API; thread-safe.Constructor and Description |
---|
MemoryNamedAsset(ArchivePath path)
Sets the name of this
MemoryNamedAsset via ArchivePath.get() of the specified (required)
ArchivePath |
MemoryNamedAsset(Path path)
|
MemoryNamedAsset(String name)
Sets the name of this
MemoryNamedAsset to the specified (required) String name |
Modifier and Type | Method and Description |
---|---|
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(String name) throws IllegalArgumentException
MemoryNamedAsset
to the specified (required) String
namepath
- IllegalArgumentException
- If the name is not specifiedpublic MemoryNamedAsset(Path path) throws IllegalArgumentException
path
- IllegalArgumentException
- If the path is not specifiedpublic MemoryNamedAsset(ArchivePath path) throws IllegalArgumentException
MemoryNamedAsset
via ArchivePath.get()
of the specified (required)
ArchivePath
path
- IllegalArgumentException
- If the path is not specifiedpublic String getName()
getName
in interface NamedAsset
String
representation of the ArchivePathNamedAsset.getName()
Copyright © 2016 JBoss by Red Hat. All rights reserved.