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
Constructors Constructor Description DefaultPositionInputStream(InputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmark(int readLimit)booleanmarkSupported()longposition()intread()intread(byte[] b, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)longreadID(int idSize)intreadInt()static intreadInt(byte[] b, int offset)StringreadLine()longreadLong()static longreadLong(byte[] b, int offset)shortreadShort()intreadUnsignedByte()longreadUnsignedInt()intreadUnsignedShort()StringreadUTF()voidreset()voidseek(int pos)voidseek(long pos)longskip(long n)intskipBytes(int n)intskipBytes(long n)-
Methods inherited from class java.io.FilterInputStream
available, close, read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, 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 Detail
-
DefaultPositionInputStream
public DefaultPositionInputStream(InputStream in)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin interfaceIPositionInputStream- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceIPositionInputStream- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Specified by:
skipin interfaceIPositionInputStream- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Specified by:
markSupportedin interfaceIPositionInputStream- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readLimit)
- Specified by:
markin interfaceIPositionInputStream- Overrides:
markin classFilterInputStream
-
reset
public void reset()
- Specified by:
resetin interfaceIPositionInputStream- Overrides:
resetin classFilterInputStream
-
skipBytes
public int skipBytes(int n) throws IOException- Specified by:
skipBytesin interfaceDataInput- Specified by:
skipBytesin interfaceIPositionInputStream- Throws:
IOException
-
skipBytes
public int skipBytes(long n) throws IOException- Specified by:
skipBytesin interfaceIPositionInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceIPositionInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceIPositionInputStream- Throws:
IOException
-
position
public long position()
- Specified by:
positionin interfaceIPositionInputStream
-
seek
public void seek(long pos) throws IOException- Specified by:
seekin interfaceIPositionInputStream- Throws:
IOException
-
seek
public void seek(int pos) throws IOException- Throws:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Specified by:
readUnsignedBytein interfaceIPositionInputStream- Throws:
IOException
-
readInt
public int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Specified by:
readIntin interfaceIPositionInputStream- Throws:
IOException
-
readLong
public long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Specified by:
readLongin interfaceIPositionInputStream- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Specified by:
readBooleanin interfaceIPositionInputStream- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Specified by:
readBytein interfaceIPositionInputStream- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Specified by:
readCharin interfaceIPositionInputStream- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Specified by:
readDoublein interfaceIPositionInputStream- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Specified by:
readFloatin interfaceIPositionInputStream- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Specified by:
readLinein interfaceIPositionInputStream- Throws:
IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Specified by:
readShortin interfaceIPositionInputStream- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Specified by:
readUTFin interfaceIPositionInputStream- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Specified by:
readUnsignedShortin interfaceIPositionInputStream- Throws:
IOException
-
readInt
public static int readInt(byte[] b, int offset) throws IOException- Throws:
IOException
-
readLong
public static long readLong(byte[] b, int offset)
-
readUnsignedInt
public long readUnsignedInt() throws IOException- Specified by:
readUnsignedIntin interfaceIPositionInputStream- Throws:
IOException
-
readID
public long readID(int idSize) throws IOException- Specified by:
readIDin interfaceIPositionInputStream- Throws:
IOException
-
-