public class TaggedInputReader extends Object implements TaggedDataInput
| Constructor and Description |
|---|
TaggedInputReader(DataInput in,
Tags tags) |
| Modifier and Type | Method and Description |
|---|---|
<T extends TaggedPersistent> |
read(Class<T> superType)
Reads a possibly null
TaggedPersistent from the stream. |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
<T extends TaggedPersistent> |
readList(Class<T> type)
Read a list of objects, proceeded by their count and return them in a list.
|
long |
readLong() |
short |
readShort() |
String |
readUTF() |
public boolean readBoolean()
throws IOException
readBoolean in interface TaggedDataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface TaggedDataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface TaggedDataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface TaggedDataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface TaggedDataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface TaggedDataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface TaggedDataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface TaggedDataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface TaggedDataInputIOExceptionpublic <T extends TaggedPersistent> T read(Class<T> superType) throws IOException
TaggedPersistent from the stream.read in interface TaggedDataInputsuperType - the type or supertype of the object to be readUnknownTagException - if a tag is encountered that this reader doesn't know aboutTagTypeMismatchException - if the read object is not the same or subtype of the supplied classIOExceptionpublic <T extends TaggedPersistent> List<T> readList(Class<T> type) throws IOException
readList in interface TaggedDataInputIOExceptionCopyright © 2024 OpenClover.org. All rights reserved.