public class FixedLengthInputStream extends InputStream
Constructor and Description |
---|
FixedLengthInputStream(InputStream instream,
long length) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
long |
getLength() |
InputStream |
getWrappedInputStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
void |
reset() |
void |
setLength(long length) |
void |
setWrappedInputStream(InputStream instream) |
long |
skip(long n) |
close, read, read
public FixedLengthInputStream(InputStream instream, long length)
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void mark(int readlimit)
mark
in class InputStream
public int available() throws IOException
available
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public InputStream getWrappedInputStream()
public void setWrappedInputStream(InputStream instream)
public long getLength()
public void setLength(long length)
public int read() throws IOException
read
in class InputStream
IOException
Copyright © 2023. All Rights Reserved.