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.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic long getPosition()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readLine(java.nio.charset.Charset charset,
byte delimiter)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionCopyright © 2007-2025 The Apache Software Foundation