ByteReader

Constructors

Link copied to clipboard
constructor(stream: InputStream)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun available(): Int
Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun mark(p0: Int)
Link copied to clipboard
Link copied to clipboard
open override fun read(): Int
open override fun read(b: ByteArray, off: Int, len: Int): Int
open fun read(p0: ByteArray): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun readNBytes(p0: Int): ByteArray
open fun readNBytes(p0: ByteArray, p1: Int, p2: Int): Int
Link copied to clipboard
fun readString(sz: Int): String?

reads 0-terminated string in default code page

Link copied to clipboard
fun InputStream.readText(charset: Charset = Charsets.UTF_8): String

Read this input stream to a string.

Link copied to clipboard

reads 0-terminated string in unicode

Link copied to clipboard

reads unicode string that has 2 bytes at start indicates length of string

Link copied to clipboard
open fun reset()
Link copied to clipboard
fun seek(n: Int): Boolean
Link copied to clipboard
fun seekTo(newPos: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun skip(p0: Long): Long
Link copied to clipboard
open fun skipNBytes(p0: Long)
Link copied to clipboard
Link copied to clipboard
fun InputStream.writeTextToFile(file: File, charset: Charset = Charsets.UTF_8)

Write this input stream to a text-file.