public abstract class ChannelReader extends InputStream implements ObjectInput, TextReader
| Constructor and Description |
|---|
ChannelReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
absolutePosition() |
abstract void |
absolutePosition(int position) |
abstract int |
available()
Will give how many bytes are available right now
|
abstract boolean |
equalBytes(byte[] bytes)
Checks to see if bytes passed are equal to bytes in ChannelReader
|
abstract boolean |
equalBytes(byte[] bytes,
int bytesPos,
int bytesLen)
Checks to see if bytes passed are equal to bytes in ChannelReader
|
abstract boolean |
equalUTF(byte[] equalText)
Reads data from ChannelReader and checks if the UTF text matches input text
|
abstract boolean |
hasRemainingBytes()
Checks to see if ChannelReader has remaining bytes
|
abstract boolean |
isStructured()
Determines if ChannelReader is structured
|
abstract long |
parse(TrieParserReader reader,
TrieParser trie,
int length)
Parses data in reader and returns numeric representation of trie
|
abstract int |
position() |
abstract void |
position(int position) |
abstract int |
read()
Reads data from ChannelReader
|
abstract int |
read(byte[] b)
Reads bytes from ChannelReader and puts them in b[]
|
abstract int |
read(byte[] b,
int off,
int len)
Reads bytes from ChannelReader and puts them in b[]
|
abstract boolean |
readBoolean()
Reads Boolean from ChannelReader
|
abstract byte |
readByte()
Reads Byte from ChannelReader
|
abstract double |
readDecimalAsDouble()
Reads decimal from ChannelReader and passes to double
|
abstract long |
readDecimalAsLong()
Reads decimal from ChannelReader and passes to long
|
abstract double |
readDouble()
Reads Double from ChannelReader
|
abstract float |
readFloat()
Reads Float from ChannelReader
|
abstract int |
readInt()
Reads Int from ChannelReader
|
abstract void |
readInto(ChannelWriter writer,
int length) |
abstract void |
readInto(Externalizable target)
Reads data from ChannelReader and passes it to target
|
abstract long |
readLong()
Reads Long from ChannelReader
|
abstract Object |
readObject()
Reads data from ChannelReader and passes it to Object
|
abstract <A extends Appendable> |
readPackedChars(A target)
Reads packed Chars from ChannelReader and passes them to target
|
abstract int |
readPackedInt()
Reads packed Int from ChannelReader and passes to int
|
abstract long |
readPackedLong()
Reads packed Long from ChannelReader and passes to long
|
abstract short |
readPackedShort()
Reads packed Short from ChannelReader
|
abstract double |
readRationalAsDouble()
Reads rational from ChannelReader and passes to double
|
abstract short |
readShort()
Reads Short from ChannelReader
|
abstract String |
readUTF()
Reads UTF bytes from ChannelReader
|
abstract <A extends Appendable> |
readUTF(A target)
Reads bytes from ChannelReader depending on leading short for length
assuming bytes are UTF-8 encoded passes them to target
|
abstract String |
readUTFFully()
Reads all UTF bytes from ChannelReader, does not use leading short
|
abstract String |
readUTFOfLength(int length)
Will read bytes from ChannelReader, depending on available(), of a specified length
|
abstract <A extends Appendable> |
readUTFOfLength(int length,
A target)
Reads specified length of bytes from ChannelReader depending on available() and, assuming they are UTF, passes them to target
|
abstract int |
skipBytes(int n)
Reads data from ChannelReader after skipping n bytes and passes data as int
|
abstract StructuredReader |
structured()
Structures ChannelReader allowing access to field name
|
abstract boolean |
wasBooleanNull()
Reads data from ChannelReader and checks if null, if not passes as boolean
|
abstract boolean |
wasDecimalNull()
Reads data from ChannelReader to check if data was decimal null
|
abstract boolean |
wasPackedNull()
Reads data from ChannelReader to check if data was packed null
|
close, mark, markSupported, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, skipreadChar, readFully, readFully, readLine, readUnsignedByte, readUnsignedShortpublic abstract int available()
available in interface ObjectInputavailable in class InputStreampublic abstract <A extends Appendable> A readUTF(A target)
readUTF in interface TextReadertarget - receiver of converted bytespublic abstract String readUTFFully()
public abstract String readUTFOfLength(int length)
length - the number of bytes to readpublic abstract <A extends Appendable> A readUTFOfLength(int length, A target)
length - the number of bytes to readtarget - receiver of converted bytespublic abstract long parse(TrieParserReader reader, TrieParser trie, int length)
reader - source data to parse fromtrie - rules for parsinglength - max value to parsepublic abstract boolean equalUTF(byte[] equalText)
equalUTF in interface TextReaderequalText - text used for comparisonpublic abstract String readUTF()
readUTF in interface TextReaderreadUTF in interface DataInputpublic abstract boolean hasRemainingBytes()
true if there are bytes remaining else falsepublic abstract int read(byte[] b)
read in interface ObjectInputread in class InputStreamb - array to store bytes readpublic abstract int read(byte[] b,
int off,
int len)
read in interface ObjectInputread in class InputStreamb - array to store bytes readoff - offset to start readinglen - length of bytes to writepublic abstract boolean equalBytes(byte[] bytes)
bytes - byte array to pass in for comparisontrue if bytes are equal else falsepublic abstract boolean equalBytes(byte[] bytes,
int bytesPos,
int bytesLen)
bytes - byte array to pass in for comparisonbytesPos - position to read frombytesLen - length of bytes to readtrue if bytes are equal else falsepublic abstract void readInto(Externalizable target)
target - to receive data from ChannelReaderpublic abstract void readInto(ChannelWriter writer, int length)
public abstract Object readObject()
readObject in interface ObjectInputpublic abstract <A extends Appendable> A readPackedChars(A target)
target - to receive packed Charstargetpublic abstract boolean wasPackedNull()
true if data was packed nullpublic abstract boolean wasDecimalNull()
true if data was decimal nullpublic abstract long readPackedLong()
public abstract int readPackedInt()
public abstract double readDecimalAsDouble()
public abstract double readRationalAsDouble()
public abstract long readDecimalAsLong()
public abstract short readPackedShort()
public abstract byte readByte()
public abstract short readShort()
public abstract int readInt()
public abstract long readLong()
public abstract double readDouble()
readDouble in interface DataInputpublic abstract float readFloat()
public abstract int read()
read in interface ObjectInputread in class InputStreampublic abstract boolean readBoolean()
readBoolean in interface DataInputpublic abstract boolean wasBooleanNull()
public abstract int skipBytes(int n)
public abstract int absolutePosition()
public abstract void absolutePosition(int position)
position - the actual offset position in the array where you want to be right nowpublic abstract int position()
public abstract void position(int position)
position - offset that you want from the absolutePositionpublic abstract boolean isStructured()
true if ChannelReader is structured else falsepublic abstract StructuredReader structured()
Copyright © 2018. All Rights Reserved.