W3cubDocs

/Haxe Java

AsynchronousFileChannel

package java.nio.channels

implements AsynchronousChannel

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

Methods

@:overload @:throws("java.lang.Exception") close ():Void

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

@:overload isOpen ():Bool

@:overload @:final lock ():Future<FileLock>

@:overload lock<A> (param1:Int64, param2:Int64, param3:Bool, param4:A, param5:CompletionHandler<FileLock, Dynamic>):Void

@:overload @:final lock<A> (param1:A, param2:CompletionHandler<FileLock, Dynamic>):Void

@:overload lock (param1:Int64, param2:Int64, param3:Bool):Future<FileLock>

@:overload read (param1:ByteBuffer, param2:Int64):Future<Integer>

@:overload read<A> (param1:ByteBuffer, param2:Int64, param3:A, param4:CompletionHandler<Integer, Dynamic>):Void

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

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

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

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

@:overload write (param1:ByteBuffer, param2:Int64):Future<Integer>

@:overload write<A> (param1:ByteBuffer, param2:Int64, param3:A, param4:CompletionHandler<Integer, Dynamic>):Void

Static methods

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

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

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