W3cubDocs

/Haxe Java

FileChannel

package java.nio.channels

extends AbstractInterruptibleChannel

implements SeekableByteChannel, GatheringByteChannel, ScatteringByteChannel

@:abstract@:libType@:javaNative@:native("java.nio.channels.FileChannel")@:javaCanonical("java.nio.channels","FileChannel") Available on java

Methods

@:overload @:throws("java.io.IOException") force (param1:Bool):Void

@:overload @:throws("java.io.IOException") @:final lock ():FileLock

@:overload @:throws("java.io.IOException") lock (param1:Int64, param2:Int64, param3:Bool):FileLock

@:overload @:throws("java.io.IOException") map (param1:FileChannel_MapMode, param2:Int64, param3:Int64):MappedByteBuffer

@:overload @:throws("java.io.IOException") position (param1:Int64):FileChannel

@:overload @:throws("java.io.IOException") position ():Int64

@:overload @:throws("java.io.IOException") read (param1:ByteBuffer, param2:Int64):Int

@:overload @:throws("java.io.IOException") read (param1:ByteBuffer):Int

@:overload @:throws("java.io.IOException") read (param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

@:overload @:throws("java.io.IOException") @:final read (param1:NativeArray<ByteBuffer>):Int64

@:overload @:throws("java.io.IOException") size ():Int64

@:overload @:throws("java.io.IOException") transferFrom (param1:ReadableByteChannel, param2:Int64, param3:Int64):Int64

@:overload @:throws("java.io.IOException") transferTo (param1:Int64, param2:Int64, param3:WritableByteChannel):Int64

@:overload @:throws("java.io.IOException") truncate (param1:Int64):FileChannel

@:overload @:throws("java.io.IOException") @:final tryLock ():FileLock

@:overload @:throws("java.io.IOException") tryLock (param1:Int64, param2:Int64, param3:Bool):FileLock

@:overload @:throws("java.io.IOException") write (param1:ByteBuffer, param2:Int64):Int

@:overload @:throws("java.io.IOException") write (param1:ByteBuffer):Int

@:overload @:throws("java.io.IOException") write (param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

@:overload @:throws("java.io.IOException") @:final write (param1:NativeArray<ByteBuffer>):Int64

Static methods

@:overload @:throws("java.io.IOException") static open (param1:Path, param2:NativeArray<OpenOption>):FileChannel

@:overload @:throws("java.io.IOException") static open (param1:Path, param2:Set<OpenOption>, param3:NativeArray<FileAttribute<Dynamic>>):FileChannel

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/nio/channels/FileChannel.html