binary-streams
Module Contents
alltypes
Module Contents
@ExperimentalUnsignedTypes abstract class AbstractStream : Stream
interface BasicStream : Closeable, AutoCloseable
@ExperimentalUnsignedTypes interface BinaryContext
@ExperimentalUnsignedTypes class BitStream : Closeable, AutoCloseable, Flushable
@ExperimentalUnsignedTypes class BufferedStreamInput : StreamInput
class BufferedStreamOutput : StreamOutput
open class ByteArea : ByteAreaBased, Iterable<Byte>
interface ByteAreaBased
enum class ByteOrder
java.io.File
java.io.InputStream
java.io.OutputStream
java.math.BigInteger
kotlin.Byte
kotlin.ByteArray
Module Contents
fun ByteArray.asArea(size: Int, offset: Int = 0): ByteArea
fun ByteArray.copyFrom(length: Int, src: ByteArray, offset: Int = 0, srcOffset: Int = 0): Unit
fun ByteArray.copyTo(length: Int, dest: ByteArray, offset: Int = 0, destOffset: Int = 0): ByteArray
fun ByteArray.crc16(startValue: Int = CRC16_START_VALUE, offset: Int = 0, size: Int = this.size - offset): Int
fun ByteArray.crc32(startValue: Int = CRC32_START_VALUE, finalize: Boolean = true, offset: Int = 0, size: Int = this.size - offset): Int
fun ByteArray.decodeUtf8(offset: Int): Int
fun ByteArray.hasUtf8At(offset: Int): Int
fun ByteArray.toBigInteger(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): BigInteger
fun ByteArray.toInteger(bytes: Int = 8, signed: Boolean = true, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): Long
@ExperimentalUnsignedTypes fun ByteArray.toUnsigned(bytes: Int = ULong.SIZE_BYTES, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): ULong
kotlin.Int
kotlin.Long
kotlin.String
kotlin.ULong
class LimitOutOfBoundsException : IOException
@ExperimentalUnsignedTypes class ProxyStreamInput : StreamInput
Module Contents
ProxyStreamInput(stream: Stream)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun close(): Unit
val defaultByteOrder: ByteOrder
val defaultStringEncoding: StringEncoding
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
val isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val limit: Long
val position: Long
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
@ExperimentalUnsignedTypes class ProxyStreamOutput : StreamOutput
Module Contents
ProxyStreamOutput(stream: Stream)
val bytesAvailable: Long
fun canWrite(bytes: Int): Boolean
fun close(): Unit
val defaultByteOrder: ByteOrder
val defaultStringEncoding: StringEncoding
fun flush(): Unit
val isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val limit: Long
val position: Long
val size: Long
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeDouble(value: Double, byteOrder: ByteOrder): Unit
fun writeFloat(value: Float, byteOrder: ByteOrder): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeInt(value: Int, byteOrder: ByteOrder): Unit
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: Long, byteOrder: ByteOrder): Unit
fun writeShort(value: Short, byteOrder: ByteOrder): Unit
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes interface Stream : StreamInput, StreamOutput
@ExperimentalUnsignedTypes class StreamAdapter : AbstractStream
Module Contents
StreamAdapter(input: InputStream)
StreamAdapter(output: OutputStream)
StreamAdapter(input: InputStream?, output: OutputStream?)
val bytesAvailable: Long
fun close(): Unit
fun flush(): Unit
val isEof: Boolean
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var position: Long
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamAdapterInput : AbstractStream
Module Contents
StreamAdapterInput(input: StreamInput)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun canWrite(bytes: Int): Boolean
fun close(): Unit
var defaultByteOrder: ByteOrder
var defaultStringEncoding: StringEncoding
fun flush(): Unit
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
var isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var limit: Long
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
var readTimeout: Int
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Nothing
var writeBufferSize: Int
fun writeByte(value: Byte): Nothing
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Nothing
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Nothing
fun writeDouble(value: Double, byteOrder: ByteOrder): Nothing
fun writeFloat(value: Float, byteOrder: ByteOrder): Nothing
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Nothing
fun writeInt(value: Int, byteOrder: ByteOrder): Nothing
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Nothing
fun writeLong(value: Long, byteOrder: ByteOrder): Nothing
fun writeShort(value: Short, byteOrder: ByteOrder): Nothing
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
var writeTimeout: Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Nothing
@ExperimentalUnsignedTypes class StreamAdapterOutput : AbstractStream
Module Contents
StreamAdapterOutput(output: StreamOutput)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun canWrite(bytes: Int): Boolean
fun close(): Unit
var defaultByteOrder: ByteOrder
var defaultStringEncoding: StringEncoding
fun flush(): Unit
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Nothing
var isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var limit: Long
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
var readTimeout: Int
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Nothing
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Unit
var writeBufferSize: Int
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeDouble(value: Double, byteOrder: ByteOrder): Unit
fun writeFloat(value: Float, byteOrder: ByteOrder): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeInt(value: Int, byteOrder: ByteOrder): Unit
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: Long, byteOrder: ByteOrder): Unit
fun writeShort(value: Short, byteOrder: ByteOrder): Unit
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
var writeTimeout: Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamByteArea : AbstractStream, ByteAreaBased
Module Contents
StreamByteArea(data: ByteAreaBased, readOnly: Boolean = false, checkLimit: Boolean = false)
val byteArea: ByteArea
fun close(): Unit
fun flush(): Unit
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamFile : AbstractStream
Module Contents
StreamFile(file: File, readOnly: Boolean = false, initialSize: Long = -1, readBufferSize: Int = 0)
StreamFile(filename: String, readOnly: Boolean = false, initialSize: Long = -1, readBufferSize: Int = 0)
fun close(): Unit
fun flush(): Unit
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
var writeBufferSize: Int
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes interface StreamInput : BasicStream
Module Contents
open val canFetchMore: FetchHint
open fun canRead(bytes: Int): Boolean
enum class FetchHint
open fun forLines(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
abstract fun readByte(): Byte
abstract fun readBytes(buffer: ByteArray, size: Int = buffer.size, offset: Int = 0): Int
open fun readByteUnsigned(): Int
open fun readChar(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Int
open fun readDouble(byteOrder: ByteOrder = defaultByteOrder): Double
open fun readFloat(byteOrder: ByteOrder = defaultByteOrder): Float
abstract fun readInt(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = defaultByteOrder): Long
open fun readInt(byteOrder: ByteOrder = defaultByteOrder): Int
open fun readLine(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): String
abstract fun readLong(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = defaultByteOrder): BigInteger
open fun readLong(byteOrder: ByteOrder = defaultByteOrder): Long
open fun readShort(byteOrder: ByteOrder = defaultByteOrder): Short
open fun readString(encoding: StringEncoding = defaultStringEncoding, length: Int = -1, byteOrder: ByteOrder = defaultByteOrder): String
abstract fun readULong(byteOrder: ByteOrder = defaultByteOrder): ULong
abstract fun skip(bytes: Long): Long
open fun useLines(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
interface StreamOutput : BasicStream, Flushable
Module Contents
open fun canWrite(bytes: Int): Boolean
open operator fun plusAssign(value: Byte): Unit
open operator fun plusAssign(value: Short): Unit
open operator fun plusAssign(value: Int): Unit
open operator fun plusAssign(value: Long): Unit
@ExperimentalUnsignedTypes open operator fun plusAssign(value: ULong): Unit
open operator fun plusAssign(value: Float): Unit
open operator fun plusAssign(value: Double): Unit
open operator fun plusAssign(value: String): Unit
open operator fun plusAssign(value: ByteArray): Unit
open fun writeBom(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Unit
abstract fun writeByte(value: Byte): Unit
abstract fun writeBytes(buffer: ByteArray, size: Int = buffer.size, offset: Int = 0): Unit
open fun writeChar(value: Int, encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeDouble(value: Double, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeFloat(value: Float, byteOrder: ByteOrder = defaultByteOrder): Unit
abstract fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeInt(value: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeLine(value: String = "", encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Int
abstract fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeLong(value: Long, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeShort(value: Short, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeString(value: String, encoding: StringEncoding = defaultStringEncoding, startIndex: Int = 0, size: Int = -1, byteOrder: ByteOrder = defaultByteOrder, needTerminator: Boolean = true): Int
@ExperimentalUnsignedTypes abstract fun writeULong(value: ULong, byteOrder: ByteOrder = defaultByteOrder): Unit
enum class StringEncoding
package loggersoft.kotlin.streams
Module Contents
@ExperimentalUnsignedTypes abstract class AbstractStream : Stream
interface BasicStream : Closeable, AutoCloseable
@ExperimentalUnsignedTypes interface BinaryContext
@ExperimentalUnsignedTypes class BitStream : Closeable, AutoCloseable, Flushable
const val BOM: Int
@ExperimentalUnsignedTypes class BufferedStreamInput : StreamInput
class BufferedStreamOutput : StreamOutput
open class ByteArea : ByteAreaBased, Iterable<Byte>
interface ByteAreaBased
fun byteBitmask(bits: Int): Byte
enum class ByteOrder
fun ByteArea.crc16(startValue: Int = CRC16_START_VALUE, offset: Int = 0, size: Int = this.size - offset): Int
@ExperimentalUnsignedTypes fun StreamInput.crc16(size: Int): Int
const val CRC16_START_VALUE: Int
fun ByteArea.crc32(startValue: Int = CRC32_START_VALUE, finalize: Boolean = true, offset: Int = 0, size: Int = this.size - offset): Int
@ExperimentalUnsignedTypes fun StreamInput.crc32(size: Int): Int
const val CRC32_START_VALUE: Int
const val EOL: Int
val eolSkipChars: Set<Int>
fun intBitmask(bits: Int): Int
java.io.File
java.io.InputStream
java.io.OutputStream
java.math.BigInteger
kotlin.Byte
kotlin.ByteArray
Module Contents
fun ByteArray.asArea(size: Int, offset: Int = 0): ByteArea
fun ByteArray.copyFrom(length: Int, src: ByteArray, offset: Int = 0, srcOffset: Int = 0): Unit
fun ByteArray.copyTo(length: Int, dest: ByteArray, offset: Int = 0, destOffset: Int = 0): ByteArray
fun ByteArray.crc16(startValue: Int = CRC16_START_VALUE, offset: Int = 0, size: Int = this.size - offset): Int
fun ByteArray.crc32(startValue: Int = CRC32_START_VALUE, finalize: Boolean = true, offset: Int = 0, size: Int = this.size - offset): Int
fun ByteArray.decodeUtf8(offset: Int): Int
fun ByteArray.hasUtf8At(offset: Int): Int
fun ByteArray.toBigInteger(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): BigInteger
fun ByteArray.toInteger(bytes: Int = 8, signed: Boolean = true, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): Long
@ExperimentalUnsignedTypes fun ByteArray.toUnsigned(bytes: Int = ULong.SIZE_BYTES, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): ULong
kotlin.Int
kotlin.Long
kotlin.String
kotlin.ULong
class LimitOutOfBoundsException : IOException
fun longBitmask(bits: Int): Long
const val MaxUtf8CodePointSize: Int
val nativeByteOrder: ByteOrder
@ExperimentalUnsignedTypes class ProxyStreamInput : StreamInput
Module Contents
ProxyStreamInput(stream: Stream)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun close(): Unit
val defaultByteOrder: ByteOrder
val defaultStringEncoding: StringEncoding
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
val isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val limit: Long
val position: Long
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
@ExperimentalUnsignedTypes class ProxyStreamOutput : StreamOutput
Module Contents
ProxyStreamOutput(stream: Stream)
val bytesAvailable: Long
fun canWrite(bytes: Int): Boolean
fun close(): Unit
val defaultByteOrder: ByteOrder
val defaultStringEncoding: StringEncoding
fun flush(): Unit
val isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val limit: Long
val position: Long
val size: Long
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeDouble(value: Double, byteOrder: ByteOrder): Unit
fun writeFloat(value: Float, byteOrder: ByteOrder): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeInt(value: Int, byteOrder: ByteOrder): Unit
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: Long, byteOrder: ByteOrder): Unit
fun writeShort(value: Short, byteOrder: ByteOrder): Unit
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes fun Stream.setLimit(position: Long, limit: Long): Unit
@ExperimentalUnsignedTypes interface Stream : StreamInput, StreamOutput
@ExperimentalUnsignedTypes class StreamAdapter : AbstractStream
Module Contents
StreamAdapter(input: InputStream)
StreamAdapter(output: OutputStream)
StreamAdapter(input: InputStream?, output: OutputStream?)
val bytesAvailable: Long
fun close(): Unit
fun flush(): Unit
val isEof: Boolean
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var position: Long
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamAdapterInput : AbstractStream
Module Contents
StreamAdapterInput(input: StreamInput)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun canWrite(bytes: Int): Boolean
fun close(): Unit
var defaultByteOrder: ByteOrder
var defaultStringEncoding: StringEncoding
fun flush(): Unit
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
var isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var limit: Long
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
var readTimeout: Int
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Nothing
var writeBufferSize: Int
fun writeByte(value: Byte): Nothing
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Nothing
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Nothing
fun writeDouble(value: Double, byteOrder: ByteOrder): Nothing
fun writeFloat(value: Float, byteOrder: ByteOrder): Nothing
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Nothing
fun writeInt(value: Int, byteOrder: ByteOrder): Nothing
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Nothing
fun writeLong(value: Long, byteOrder: ByteOrder): Nothing
fun writeShort(value: Short, byteOrder: ByteOrder): Nothing
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
var writeTimeout: Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Nothing
@ExperimentalUnsignedTypes class StreamAdapterOutput : AbstractStream
Module Contents
StreamAdapterOutput(output: StreamOutput)
val bytesAvailable: Long
val canFetchMore: FetchHint
fun canRead(bytes: Int): Boolean
fun canWrite(bytes: Int): Boolean
fun close(): Unit
var defaultByteOrder: ByteOrder
var defaultStringEncoding: StringEncoding
fun flush(): Unit
fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Nothing
var isClosed: Boolean
val isEof: Boolean
val isFixedSize: Boolean
val isNetwork: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var limit: Long
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readByteUnsigned(): Int
fun readChar(encoding: StringEncoding, byteOrder: ByteOrder): Int
fun readDouble(byteOrder: ByteOrder): Double
fun readFloat(byteOrder: ByteOrder): Float
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readInt(byteOrder: ByteOrder): Int
fun readLine(encoding: StringEncoding, byteOrder: ByteOrder): String
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readLong(byteOrder: ByteOrder): Long
fun readShort(byteOrder: ByteOrder): Short
fun readString(encoding: StringEncoding, length: Int, byteOrder: ByteOrder): String
var readTimeout: Int
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun skip(bytes: Long): Long
fun useLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Nothing
fun writeBom(encoding: StringEncoding, byteOrder: ByteOrder): Unit
var writeBufferSize: Int
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeChar(value: Int, encoding: StringEncoding, byteOrder: ByteOrder): Unit
fun writeDouble(value: Double, byteOrder: ByteOrder): Unit
fun writeFloat(value: Float, byteOrder: ByteOrder): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeInt(value: Int, byteOrder: ByteOrder): Unit
fun writeLine(value: String, encoding: StringEncoding, byteOrder: ByteOrder): Int
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: Long, byteOrder: ByteOrder): Unit
fun writeShort(value: Short, byteOrder: ByteOrder): Unit
fun writeString(value: String, encoding: StringEncoding, startIndex: Int, size: Int, byteOrder: ByteOrder, needTerminator: Boolean): Int
var writeTimeout: Int
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamByteArea : AbstractStream, ByteAreaBased
Module Contents
StreamByteArea(data: ByteAreaBased, readOnly: Boolean = false, checkLimit: Boolean = false)
val byteArea: ByteArea
fun close(): Unit
fun flush(): Unit
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes class StreamFile : AbstractStream
Module Contents
StreamFile(file: File, readOnly: Boolean = false, initialSize: Long = -1, readBufferSize: Int = 0)
StreamFile(filename: String, readOnly: Boolean = false, initialSize: Long = -1, readBufferSize: Int = 0)
fun close(): Unit
fun flush(): Unit
val isFixedSize: Boolean
val isReadable: Boolean
val isSeekable: Boolean
val isSupportLimit: Boolean
val isWritable: Boolean
var position: Long
var readBufferSize: Int
fun readByte(): Byte
fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
fun readInt(bytes: Int, signed: Boolean, byteOrder: ByteOrder): Long
fun readLong(bytes: Int, signed: Boolean, byteOrder: ByteOrder): BigInteger
fun readULong(byteOrder: ByteOrder): ULong
val size: Long
var writeBufferSize: Int
fun writeByte(value: Byte): Unit
fun writeBytes(buffer: ByteArray, size: Int, offset: Int): Unit
fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder): Unit
fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder): Unit
fun writeULong(value: ULong, byteOrder: ByteOrder): Unit
@ExperimentalUnsignedTypes interface StreamInput : BasicStream
Module Contents
open val canFetchMore: FetchHint
open fun canRead(bytes: Int): Boolean
enum class FetchHint
open fun forLines(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
abstract fun readByte(): Byte
abstract fun readBytes(buffer: ByteArray, size: Int = buffer.size, offset: Int = 0): Int
open fun readByteUnsigned(): Int
open fun readChar(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Int
open fun readDouble(byteOrder: ByteOrder = defaultByteOrder): Double
open fun readFloat(byteOrder: ByteOrder = defaultByteOrder): Float
abstract fun readInt(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = defaultByteOrder): Long
open fun readInt(byteOrder: ByteOrder = defaultByteOrder): Int
open fun readLine(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): String
abstract fun readLong(bytes: Int, signed: Boolean = true, byteOrder: ByteOrder = defaultByteOrder): BigInteger
open fun readLong(byteOrder: ByteOrder = defaultByteOrder): Long
open fun readShort(byteOrder: ByteOrder = defaultByteOrder): Short
open fun readString(encoding: StringEncoding = defaultStringEncoding, length: Int = -1, byteOrder: ByteOrder = defaultByteOrder): String
abstract fun readULong(byteOrder: ByteOrder = defaultByteOrder): ULong
abstract fun skip(bytes: Long): Long
open fun useLines(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder, block: (lines: Sequence<String>) -> Unit): Unit
interface StreamOutput : BasicStream, Flushable
Module Contents
open fun canWrite(bytes: Int): Boolean
open operator fun plusAssign(value: Byte): Unit
open operator fun plusAssign(value: Short): Unit
open operator fun plusAssign(value: Int): Unit
open operator fun plusAssign(value: Long): Unit
@ExperimentalUnsignedTypes open operator fun plusAssign(value: ULong): Unit
open operator fun plusAssign(value: Float): Unit
open operator fun plusAssign(value: Double): Unit
open operator fun plusAssign(value: String): Unit
open operator fun plusAssign(value: ByteArray): Unit
open fun writeBom(encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Unit
abstract fun writeByte(value: Byte): Unit
abstract fun writeBytes(buffer: ByteArray, size: Int = buffer.size, offset: Int = 0): Unit
open fun writeChar(value: Int, encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeDouble(value: Double, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeFloat(value: Float, byteOrder: ByteOrder = defaultByteOrder): Unit
abstract fun writeInt(value: Long, bytes: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeInt(value: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeLine(value: String = "", encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder): Int
abstract fun writeLong(value: BigInteger, bytes: Int, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeLong(value: Long, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeShort(value: Short, byteOrder: ByteOrder = defaultByteOrder): Unit
open fun writeString(value: String, encoding: StringEncoding = defaultStringEncoding, startIndex: Int = 0, size: Int = -1, byteOrder: ByteOrder = defaultByteOrder, needTerminator: Boolean = true): Int
@ExperimentalUnsignedTypes abstract fun writeULong(value: ULong, byteOrder: ByteOrder = defaultByteOrder): Unit
enum class StringEncoding
@ExperimentalUnsignedTypes fun Stream.tryDetectBom(): Boolean
fun validateUtf8Size(size: Int): Int