org.eclipse.mat.parser.io
Class PositionInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.eclipse.mat.parser.io.PositionInputStream
- All Implemented Interfaces:
- Closeable, DataInput
public class PositionInputStream
- extends FilterInputStream
- implements DataInput
PositionInputStream
public PositionInputStream(InputStream in)
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class FilterInputStream
mark
public void mark(int readLimit)
- Overrides:
mark
in class FilterInputStream
reset
public void reset()
- Overrides:
reset
in class FilterInputStream
skipBytes
public final int skipBytes(int n)
throws IOException
- Specified by:
skipBytes
in interface DataInput
- Throws:
IOException
skipBytes
public final int skipBytes(long n)
throws IOException
- Throws:
IOException
readFully
public final void readFully(byte[] b)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
readFully
public final void readFully(byte[] b,
int off,
int len)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
position
public long position()
seek
public void seek(long pos)
throws IOException
- Throws:
IOException
readUnsignedByte
public final int readUnsignedByte()
throws IOException
- Specified by:
readUnsignedByte
in interface DataInput
- Throws:
IOException
readInt
public final int readInt()
throws IOException
- Specified by:
readInt
in interface DataInput
- Throws:
IOException
readLong
public final long readLong()
throws IOException
- Specified by:
readLong
in interface DataInput
- Throws:
IOException
readBoolean
public boolean readBoolean()
throws IOException
- Specified by:
readBoolean
in interface DataInput
- Throws:
IOException
readByte
public byte readByte()
throws IOException
- Specified by:
readByte
in interface DataInput
- Throws:
IOException
readChar
public char readChar()
throws IOException
- Specified by:
readChar
in interface DataInput
- Throws:
IOException
readDouble
public double readDouble()
throws IOException
- Specified by:
readDouble
in interface DataInput
- Throws:
IOException
readFloat
public float readFloat()
throws IOException
- Specified by:
readFloat
in interface DataInput
- Throws:
IOException
readLine
public String readLine()
throws IOException
- Specified by:
readLine
in interface DataInput
- Throws:
IOException
readShort
public short readShort()
throws IOException
- Specified by:
readShort
in interface DataInput
- Throws:
IOException
readUTF
public String readUTF()
throws IOException
- Specified by:
readUTF
in interface DataInput
- Throws:
IOException
readUnsignedShort
public int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort
in interface DataInput
- Throws:
IOException
readIntArray
public int readIntArray(int[] a)
throws IOException
- Throws:
IOException
readLongArray
public int readLongArray(long[] a)
throws IOException
- Throws:
IOException