Package loggersoft. kotlin. streams
Types
This class is recommended as the base for any Stream implementations.
Root interface of inheritance: contains the most generic properties of any stream.
Interface for objects which has binary representation (context) and can be serialized and deserialized through binary streams.
The decorator of StreamInput for buffering.
The decorator of StreamOutput for buffering.
Represents objects which based on binary data.
Thrown when stream user read or write outside current limit.
Provides StreamInput interface from Stream.
Provides StreamOutput interface from Stream.
Represents input and output stream.
Provides Stream interface from Java InputStream and OutputStream.
Provides Stream interface from StreamInput.
Provides Stream interface from StreamOutput.
Implementation of the Stream for ByteArea (in fact for any ByteAreaBased objects).
Implementation of Stream for random access file.
Represents streams for reading.
Represents streams for writing.
The string encoding type.
Functions
Calculates CRC16 for size bytes in the stream.
Calculates CRC16 of ByteArray from offset with size starting from startValue.
Calculates CRC16 of ByteArea from offset with size starting from startValue.
Calculates CRC32 for size bytes in the stream.
Calculates CRC32 of ByteArray from offset with size starting from startValue. If finalize is true
returned value will be final (when data processed partially for the last block).
Calculates CRC32 of ByteArea from offset with size starting from startValue. If finalize is true
returned value will be final (when data processed partially for the last block).
Decodes UTF-8 code point starting from offset.
Returns true
if this code point is the valid ASCII character.
Calculates bytes required to store this string in specified encoding starting from startIndex and with size limit. If needTerminator is true
also place for the last zero character will be counted too.
Opens random access file stream from Java File.
Extracts BigInteger value from this byte array starting from offset with specified bytes count and byteOrder. If signed is true
the last bit interprets as a sign.
Returns unsigned representation of this value as BigInteger.
Creates StreamInput from Java I/O InputStream with BufferedStreamInput.
Creates StreamOutput from Java I/O OutputStream with BufferedStreamOutput.
Creates StreamInput from Java I/O InputStream.
Creates StreamOutput from Java I/O OutputStream.
Returns unsigned representation of this.
Tries to detect BOM signature in current position and if success updates Stream.defaultByteOrder and Stream.defaultStringEncoding.
Validates the size of UTF-8 code point in bytes and if it is invalid throws CharacterCodingException.