Class MemoryNamedAsset
java.lang.Object
org.jboss.shrinkwrap.api.nio.file.MemoryAsset
org.jboss.shrinkwrap.api.nio.file.MemoryNamedAsset
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,ReadableByteChannel
,SeekableByteChannel
,WritableByteChannel
,Asset
,NamedAsset
MemoryAsset
implementation complying to the NamedAsset
API; thread-safe.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMemoryNamedAsset
(String name) Sets the name of thisMemoryNamedAsset
to the specified (required)String
nameMemoryNamedAsset
(Path path) MemoryNamedAsset
(ArchivePath path) Sets the name of thisMemoryNamedAsset
viaArchivePath.get()
of the specified (required)ArchivePath
-
Method Summary
Methods inherited from class org.jboss.shrinkwrap.api.nio.file.MemoryAsset
close, isOpen, openStream, position, position, read, size, truncate, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.shrinkwrap.api.asset.Asset
openStream
-
Field Details
-
name
-
-
Constructor Details
-
MemoryNamedAsset
Sets the name of thisMemoryNamedAsset
to the specified (required)String
name- Parameters:
path
-- Throws:
IllegalArgumentException
- If the name is not specified
-
MemoryNamedAsset
- Parameters:
path
-- Throws:
IllegalArgumentException
- If the path is not specified
-
MemoryNamedAsset
Sets the name of thisMemoryNamedAsset
viaArchivePath.get()
of the specified (required)ArchivePath
- Parameters:
path
-- Throws:
IllegalArgumentException
- If the path is not specified
-
-
Method Details
-
getName
Specifies the name (ArchivePath) for the archive- Specified by:
getName
in interfaceNamedAsset
- Returns:
String
representation of the ArchivePath- See Also:
-