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, reset
public BufferedPositionedInputStream(InputStream in, long pos)
public BufferedPositionedInputStream(InputStream in)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public long getPosition() throws IOException
IOException
public String readLine(Charset charset, byte delimiter) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2007-2017 The Apache Software Foundation