@PublicApi @NotThreadSafe public abstract class FileOutStream extends OutputStream implements Cancelable
OutputStream
as the basics, it also keeps counting
the number of bytes written to the output stream, and extends Cancelable
to abort the
writes.Modifier and Type | Field and Description |
---|---|
protected long |
mBytesWritten
The number of bytes written.
|
Constructor and Description |
---|
FileOutStream() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Aborts the output stream.
|
long |
getBytesWritten() |
public long getBytesWritten()
public void cancel() throws IOException
cancel
in interface Cancelable
IOException
Copyright © 2023. All Rights Reserved.