public class BufferedPositionedInputStream extends InputStream
| Constructor and Description |
|---|
BufferedPositionedInputStream(InputStream in) |
BufferedPositionedInputStream(InputStream in,
long pos) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition()
Returns the current position in the tracked InputStream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
String |
readLine(Charset charset,
byte delimiter) |
long |
skip(long n) |
available, mark, markSupported, read, resetpublic BufferedPositionedInputStream(InputStream in, long pos)
public BufferedPositionedInputStream(InputStream in)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic long getPosition()
throws IOException
IOExceptionpublic String readLine(Charset charset, byte delimiter) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2007-2017 The Apache Software Foundation