Interface Asset
- All Known Subinterfaces:
NamedAsset
- All Known Implementing Classes:
ArchiveAsset, ByteArrayAsset, ClassAsset, ClassLoaderAsset, EmptyAsset, FileAsset, MemoryAsset, MemoryNamedAsset, StringAsset, UrlAsset
public interface Asset
Represents byte-based content. Typically stored within a
Node inside of an Archive under a context
ArchivePath. May be added directly to all Archive types.- Author:
- Aslak Knutsen, ALR
-
Method Summary
Modifier and TypeMethodDescriptionGet an input stream for the resource content.
-
Method Details
-
openStream
InputStream openStream()Get an input stream for the resource content. The caller is responsible for closing the stream.- Returns:
- A new open
InputStreamfor each call
-