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 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)intreadInt()intreadIntArray(int[] a)StringreadLine()longreadLong()intreadLongArray(long[] a)shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()voidreset()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
-
-
-
-
Constructor Detail
-
PositionInputStream
public PositionInputStream(InputStream in)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readLimit)
- Overrides:
markin classFilterInputStream
-
reset
public void reset()
- Overrides:
resetin classFilterInputStream
-
skipBytes
public final int skipBytes(int n) throws IOException- Specified by:
skipBytesin 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:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public final void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin 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:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readInt
public final int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
public final long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readIntArray
public int readIntArray(int[] a) throws IOException- Throws:
IOException
-
readLongArray
public int readLongArray(long[] a) throws IOException- Throws:
IOException
-
-