java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
nl.andrewl.concord_core.util.ExtendedDataInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
An extended output stream which contains additional methods for reading more
complex types that are used by the Concord system.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Message>
T[]readArray
(MessageTypeSerializer<T> type) <T extends Enum<?>>
TreadObject
(Class<?> type) Reads an object from the stream that is of a certain expected type.readUUID()
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ExtendedDataInputStream
-
-
Method Details
-
readString
- Throws:
IOException
-
readEnum
- Throws:
IOException
-
readUUID
- Throws:
IOException
-
readArray
- Throws:
IOException
-
readObject
Reads an object from the stream that is of a certain expected type.- Parameters:
type
- The type of object to read.- Returns:
- The object that was read.
- Throws:
IOException
- If an error occurs while reading.
-