@PublicApi @NotThreadSafe public abstract class FileOutStream extends java.io.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 java.io.IOException
cancel in interface Cancelablejava.io.IOExceptionCopyright © 2022. All Rights Reserved.