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