FileHandle class

Properties

file RandomAccessFile
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appendingSink() Future<Sink>
close() Future<void>
flush() Future<void>
length() Future<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
position() Future<int>
positionSink(Sink sink) int
positionSource(Source source) int
read(int position, Buffer sink, int count) Future<int>
readNeedProtection(int position, Buffer sink, int count) Future<int>
repositionSink(Sink sink, int position) Future<void>
Change the position of sink in the file to position. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it emits for buffered bytes.
repositionSource(Source source, int position) Future<void>
Change the position of source in the file to position. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it will skip or clear buffered bytes.
sink([int position = 0]) Sink
source([int position = 0]) Source
synchronized<T>(FutureOr<T> computation()) Future<T>
toString() String
A string representation of this object.
inherited
truncate(int length) Future<void>
write(int position, Buffer source, int count) Future<void>
writeNeedProtection(int position, Buffer source, int count) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited