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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mark
(int readLimit) boolean
long
position()
int
read()
int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
double
float
final void
readFully
(byte[] b) final void
readFully
(byte[] b, int off, int len) final int
readInt()
int
readIntArray
(int[] a) readLine()
final long
readLong()
int
readLongArray
(long[] a) short
final int
int
readUTF()
void
reset()
void
seek
(long pos) long
skip
(long n) final int
skipBytes
(int n) final 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, skipNBytes, transferTo
-
Constructor Details
-
PositionInputStream
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- 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
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
position
public long position() -
seek
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readIntArray
- Throws:
IOException
-
readLongArray
- Throws:
IOException
-