class PositionInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
pos |
private java.io.InputStream |
stream |
| Constructor and Description |
|---|
PositionInputStream(java.io.InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFilePointer() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
seekForward(long position)
Move the file pointer to the specified position.
|
long |
skip(long n) |
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
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 void seekForward(long position)
throws java.io.IOException
java.io.IOExceptionpublic long getFilePointer()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.