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(java.nio.file.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() |
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 namepath - IllegalArgumentException - If the name is not specifiedpublic MemoryNamedAsset(java.nio.file.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)
ArchivePathpath - IllegalArgumentException - If the path is not specifiedpublic String getName()
getName in interface NamedAssetNamedAsset.getName()Copyright © 2013 JBoss by Red Hat. All Rights Reserved.