public class LengthInputStream extends FilterInputStream
in
Constructor and Description |
---|
LengthInputStream(InputStream in,
long length)
Create an stream.
|
Modifier and Type | Method and Description |
---|---|
long |
getLength() |
InputStream |
getWrappedStream() |
available, close, mark, markSupported, read, read, read, reset, skip
public LengthInputStream(InputStream in, long length)
in
- the underlying input stream.length
- the length of the stream.public long getLength()
public InputStream getWrappedStream()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.