Package org.eclipse.mat.hprof
Class DefaultPositionInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.eclipse.mat.hprof.DefaultPositionInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,IPositionInputStream
public class DefaultPositionInputStream
extends FilterInputStream
implements DataInput, IPositionInputStream
-
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
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) long
readID
(int idSize) int
readInt()
static int
readInt
(byte[] b, int offset) readLine()
long
readLong()
static long
readLong
(byte[] b, int offset) short
int
long
int
readUTF()
void
reset()
void
seek
(int pos) 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, skipNBytes, transferTo
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.mat.hprof.IPositionInputStream
close
-
Constructor Details
-
DefaultPositionInputStream
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPositionInputStream
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Specified by:
read
in interfaceIPositionInputStream
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Specified by:
skip
in interfaceIPositionInputStream
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Specified by:
markSupported
in interfaceIPositionInputStream
- Overrides:
markSupported
in classFilterInputStream
-
mark
public void mark(int readLimit) - Specified by:
mark
in interfaceIPositionInputStream
- Overrides:
mark
in classFilterInputStream
-
reset
public void reset()- Specified by:
reset
in interfaceIPositionInputStream
- Overrides:
reset
in classFilterInputStream
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Specified by:
skipBytes
in interfaceIPositionInputStream
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceIPositionInputStream
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Specified by:
readFully
in interfaceIPositionInputStream
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Specified by:
readFully
in interfaceIPositionInputStream
- Throws:
IOException
-
position
public long position()- Specified by:
position
in interfaceIPositionInputStream
-
seek
- Specified by:
seek
in interfaceIPositionInputStream
- Throws:
IOException
-
seek
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Specified by:
readUnsignedByte
in interfaceIPositionInputStream
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Specified by:
readInt
in interfaceIPositionInputStream
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Specified by:
readLong
in interfaceIPositionInputStream
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Specified by:
readBoolean
in interfaceIPositionInputStream
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Specified by:
readByte
in interfaceIPositionInputStream
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Specified by:
readChar
in interfaceIPositionInputStream
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Specified by:
readDouble
in interfaceIPositionInputStream
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Specified by:
readFloat
in interfaceIPositionInputStream
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Specified by:
readLine
in interfaceIPositionInputStream
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Specified by:
readShort
in interfaceIPositionInputStream
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Specified by:
readUTF
in interfaceIPositionInputStream
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Specified by:
readUnsignedShort
in interfaceIPositionInputStream
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
public static long readLong(byte[] b, int offset) -
readUnsignedInt
- Specified by:
readUnsignedInt
in interfaceIPositionInputStream
- Throws:
IOException
-
readID
- Specified by:
readID
in interfaceIPositionInputStream
- Throws:
IOException
-