java.lang.Object
java.io.InputStream
de.grogra.util.HierarchicalQueue.Reader
- All Implemented Interfaces:
Closeable
,DataInput
,ObjectInput
,AutoCloseable
- Direct Known Subclasses:
GraphQueue.Processor
,XAQueue.Reader
- Enclosing class:
- HierarchicalQueue
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
void
close()
final void
enter
(boolean last) final boolean
final void
leave()
final int
final int
final int
next()
final byte
peekByte()
final double
final float
final int
peekInt()
final long
peekLong()
final Object
final void
final int
previous()
final void
final int
read()
final int
read
(byte[] b) final int
read
(byte[] b, int off, int len) final boolean
final byte
readByte()
final char
readChar()
final double
final float
final void
readFully
(byte[] b) final void
readFully
(byte[] b, int off, int len) final int
readInt()
final int
readItem()
final String
readLine()
final long
readLong()
final Object
final Object
final Object
final short
final void
final int
final int
final String
readUTF()
final int
final long
skip
(long n) final void
final void
final void
skipByte()
final int
skipBytes
(int n) final void
skipChar()
final void
final void
final void
skipInt()
final void
skipLong()
final void
final void
final void
skipUTF()
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
in
-
-
Constructor Details
-
Reader
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceObjectInput
- Overrides:
close
in classInputStream
-
resetCursor
public final int resetCursor() -
moveTo
-
isAt
-
moveToCurrent
public final int moveToCurrent() -
pushCursor
public final void pushCursor() -
popCursor
public final void popCursor() -
readItem
public final int readItem() -
next
public final int next() -
previous
public final int previous() -
enter
- Throws:
IOException
-
leave
- Throws:
IOException
-
read
public final int read()- Specified by:
read
in interfaceObjectInput
- Specified by:
read
in classInputStream
-
read
public final int read(byte[] b) - Specified by:
read
in interfaceObjectInput
- Overrides:
read
in classInputStream
-
read
public final int read(byte[] b, int off, int len) - Specified by:
read
in interfaceObjectInput
- Overrides:
read
in classInputStream
-
readFully
public final void readFully(byte[] b) -
readFully
public final void readFully(byte[] b, int off, int len) -
readBoolean
public final boolean readBoolean()- Specified by:
readBoolean
in interfaceDataInput
-
readShort
public final short readShort() -
readUnsignedByte
public final int readUnsignedByte()- Specified by:
readUnsignedByte
in interfaceDataInput
-
readUnsignedShort
public final int readUnsignedShort()- Specified by:
readUnsignedShort
in interfaceDataInput
-
readChar
public final char readChar() -
readByte
public final byte readByte() -
skipByte
public final void skipByte() -
peekByte
public final byte peekByte() -
readInt
public final int readInt() -
skipInt
public final void skipInt() -
peekInt
public final int peekInt() -
readLong
public final long readLong() -
skipLong
public final void skipLong() -
peekLong
public final long peekLong() -
readFloat
public final float readFloat() -
skipFloat
public final void skipFloat() -
peekFloat
public final float peekFloat() -
readDouble
public final double readDouble()- Specified by:
readDouble
in interfaceDataInput
-
skipDouble
public final void skipDouble() -
peekDouble
public final double peekDouble() -
readObjectInQueue
-
skipObjectInQueue
public final void skipObjectInQueue() -
peekObject
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
UTFDataFormatException
-
readLine
-
skip
public final long skip(long n) - Specified by:
skip
in interfaceObjectInput
- Overrides:
skip
in classInputStream
-
skipBytes
public final int skipBytes(int n) -
available
public final int available()- Specified by:
available
in interfaceObjectInput
- Overrides:
available
in classInputStream
-
readObject
- Specified by:
readObject
in interfaceObjectInput
- Throws:
IOException
ClassNotFoundException
-
readObjectInStream
- Throws:
IOException
ClassNotFoundException
-
readSkipBlock
public final void readSkipBlock() -
skipBoolean
public final void skipBoolean() -
skipShort
public final void skipShort() -
skipChar
public final void skipChar() -
skipBlock
public final void skipBlock() -
skipUTF
public final void skipUTF()
-