View source
class NativeInput
package java.io
extends Input
@:hxGen@:native("haxe.java.io.NativeInput")Available on java
Constructor
Methods
Inherited Variables
Defined by Input
Inherited Methods
Defined by Input
readAll(?bufsize:Int):Bytes
Read and return all available data.
The bufsize
optional argument specifies the size of chunks by
which data is read. Its default value is target-specific.
readDouble():Float
Read a 64-bit double-precision floating point number.
Endianness is specified by the bigEndian
property.
readFloat():Float
Read a 32-bit floating point number.
Endianness is specified by the bigEndian
property.
readFullBytes(s:Bytes, pos:Int, len:Int):Void
Read len
bytes and write them into s
to the position specified by pos
.
Unlike readBytes
, this method tries to read the exact len
amount of bytes.