public abstract class MarkFindingOutputStream extends OutputStream
OutputStream that looks for MARK in the output stream and notifies the callback.
The mark itself will be removed from the stream.| Constructor and Description |
|---|
MarkFindingOutputStream(OutputStream base) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
protected abstract void |
onMarkFound() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic static final String MARK
public MarkFindingOutputStream(OutputStream base)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected abstract void onMarkFound()
Copyright © 2019. All rights reserved.