类 ReadFile
- java.lang.Object
-
- io.github.kavahub.file.reader.ReadFile
-
public final class ReadFile extends Object
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcancel()booleanisCancelled()static ReadFileof(AsynchronousFileChannel channel, int bufferSize)voidread()ReadFilewhenComplete(Consumer<Integer> whenComplete)ReadFilewhenError(Consumer<Throwable> whenError)ReadFilewhenRead(Consumer<byte[]> whenRead)
-
-
-
方法详细资料
-
of
public static ReadFile of(AsynchronousFileChannel channel, int bufferSize)
-
cancel
public void cancel()
-
isCancelled
public boolean isCancelled()
- 返回:
-
read
public void read()
-
-