Package 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
,AutoCloseable
public class PositionInputStream extends FilterInputStream implements DataInput
-
-
Constructor Summary
Constructors Constructor Description PositionInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mark(int readLimit)
boolean
markSupported()
long
position()
int
read()
int
read(byte[] b, int off, int len)
boolean
readBoolean()
byte
readByte()
char
readChar()
double
readDouble()
float
readFloat()
void
readFully(byte[] b)
void
readFully(byte[] b, int off, int len)
int
readInt()
int
readIntArray(int[] a)
String
readLine()
long
readLong()
int
readLongArray(long[] a)
short
readShort()
int
readUnsignedByte()
int
readUnsignedShort()
String
readUTF()
void
reset()
void
seek(long pos)
long
skip(long n)
int
skipBytes(int n)
int
skipBytes(long n)
-
Methods inherited from class java.io.FilterInputStream
available, close, read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
PositionInputStream
public PositionInputStream(InputStream in)
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
mark
public void mark(int readLimit)
- Overrides:
mark
in classFilterInputStream
-
reset
public void reset()
- Overrides:
reset
in classFilterInputStream
-
skipBytes
public final int skipBytes(int n) throws IOException
- Specified by:
skipBytes
in interfaceDataInput
- 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 interfaceDataInput
- Throws:
IOException
-
readFully
public final void readFully(byte[] b, int off, int len) throws IOException
- Specified by:
readFully
in interfaceDataInput
- 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 interfaceDataInput
- Throws:
IOException
-
readInt
public final int readInt() throws IOException
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
public final long readLong() throws IOException
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
public byte readByte() throws IOException
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readChar
public char readChar() throws IOException
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readShort
public short readShort() throws IOException
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readIntArray
public int readIntArray(int[] a) throws IOException
- Throws:
IOException
-
readLongArray
public int readLongArray(long[] a) throws IOException
- Throws:
IOException
-
-