public abstract class LimitedInputStream extends InputStream
InputStream, providing the stream length in bytes.| Constructor and Description |
|---|
LimitedInputStream() |
| Modifier and Type | Method and Description |
|---|---|
static LimitedInputStream |
create(InputStream stream,
long length)
Create a new
LimitedInputStream. |
abstract InputStream |
getActualStream()
Get the actual
InputStream if acts as a wrapper. |
abstract long |
getLength()
Get the stream length.
|
available, close, mark, markSupported, read, read, read, reset, skippublic abstract long getLength()
public abstract InputStream getActualStream()
InputStream if acts as a wrapper.InputStream, maybe the instance itselfpublic static LimitedInputStream create(InputStream stream, long length)
LimitedInputStream.stream - The input stream (not null)length - The stream length in bytesLimitedInputStream instanceCopyright © 2019 The Holon Platform. All rights reserved.