public class ReadableResourceInputStream extends AbstractMemoryReadableResource
IReadableResource based on an InputStream.| Constructor and Description |
|---|
ReadableResourceInputStream(InputStream aIS)
Deprecated.
Use
ReadableResourceInputStream(String, InputStream)
instead |
ReadableResourceInputStream(String sResourceID,
InputStream aIS)
Constructor to use.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Get the input stream to read from the object.
|
boolean |
isReadMultiple()
Check if the
InputStream from IHasInputStream.getInputStream() and
IHasInputStream.getBufferedInputStream() can be acquired more than once. |
String |
toString() |
exists, getAsFile, getAsURL, getPath, getReadableCloneForPath, getResourceIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBufferedReader, getReadergetBufferedInputStream@Deprecated public ReadableResourceInputStream(@Nonnull @WillNotClose InputStream aIS)
ReadableResourceInputStream(String, InputStream)
insteadaIS - InputStream to use. May not be null. This Stream is NOT
closed by this class.public ReadableResourceInputStream(@Nullable String sResourceID, @Nonnull @WillNotClose InputStream aIS)
sResourceID - The unique resource ID, used as the caching key.aIS - The InputStream to read from. May not be null. This
Stream is NOT closed by this class.@Nonnull public final InputStream getInputStream()
IHasInputStreamInputStream needs to be created.null if resolving failed.public final boolean isReadMultiple()
IHasInputStreamInputStream from IHasInputStream.getInputStream() and
IHasInputStream.getBufferedInputStream() can be acquired more than once.true if the input stream can be acquired more than
once, false if not.public String toString()
toString in class AbstractMemoryReadableResourceCopyright © 2014–2022 Philip Helger. All rights reserved.