public class ReadableResourceInputStream extends AbstractMemoryReadableResource
IReadableResource based on an InputStream.| Constructor and Description |
|---|
ReadableResourceInputStream(InputStream aIS) |
ReadableResourceInputStream(String sResourceID,
InputStream aIS) |
| 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, getReadergetBufferedInputStreampublic ReadableResourceInputStream(@Nonnull InputStream aIS)
public ReadableResourceInputStream(@Nullable String sResourceID, @Nonnull @WillNotClose InputStream aIS)
@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–2019 Philip Helger. All rights reserved.