public class BlockStream extends InputStream
Constructor and Description |
---|
BlockStream(InputStream in,
int theBlockSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
void |
reset() |
long |
skip(long n) |
mark, markSupported, read, read
public BlockStream(InputStream in, int theBlockSize) throws IOException
in
- Input streamtheBlockSize
- size of the block to hold in memoryIOException
- when the block could not be filledpublic int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
InputStream.close()
public void reset() throws IOException
reset
in class InputStream
IOException
InputStream.reset()
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.