Stream
Represents input and output stream.
Author
Alexander Kornilov (akornilov.82@gmail.com).
Functions
Writes Byte into the stream.
Writes ByteArray into the stream.
Writes Double into the stream using defaultByteOrder.
Writes Float into the stream using defaultByteOrder.
Writes Int into the stream using defaultByteOrder.
Writes Long into the stream using defaultByteOrder.
Writes Short into the stream using defaultByteOrder.
Writes String into the stream using defaultStringEncoding and defaultByteOrder.
Writes UInt into the stream using defaultByteOrder.
Writes ULong into the stream using defaultByteOrder.
Writes UShort into the stream using defaultByteOrder.
Reads unsigned Byte from the stream.
Read integer value from the stream as BigInteger with specified bytes count and byteOrder. If signed is true
the last bit interprets as a sign.
Calls the block callback giving it a sequence of all the lines in the stream and closes it once the processing is complete.
Writes BOM character into the stream for non-ASCII encoding.
Writes string into the stream.
Properties
Contains available bytes for read/write and the negative value if available bytes is not available at moment. Also, this property take into account limit value if it has non-negative value and isSupportLimit is true.
Indicates that position of the stream can be changed.
The limit position of the stream for read and write. If someone try to read or write out of this bound (position >= limit) the LimitOutOfBoundsException should be thrown.
Inheritors
Extensions
Tries to detect BOM signature in current position and if success updates Stream.defaultByteOrder and Stream.defaultStringEncoding.