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, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenStreampublic MemoryNamedAsset(String name) throws IllegalArgumentException
MemoryNamedAsset to the specified (required) String namename - The name of this MemoryNamedAsset. Must not be null.IllegalArgumentException - If the name is not specifiedpublic MemoryNamedAsset(Path path) throws IllegalArgumentException
path - The Path whose Path.toString() will be used as the name of MemoryNamedAsset. Must not be null.IllegalArgumentException - If the path is not specifiedpublic MemoryNamedAsset(ArchivePath path) throws IllegalArgumentException
MemoryNamedAsset via ArchivePath.get() of the specified (required)
ArchivePathpath - The ArchivePath whose ArchivePath.get() will be used as the name of this MemoryNamedAsset. Must not be null.IllegalArgumentException - If the path is not specifiedpublic String getName()
getName in interface NamedAssetString representation of the ArchivePathNamedAsset.getName()Copyright © 2024 JBoss by Red Hat. All rights reserved.