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.Modifier | Constructor and Description |
---|---|
protected |
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) |
write
public static final String MARK
protected MarkFindingOutputStream(OutputStream base)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
protected abstract void onMarkFound()
Copyright © 2004–2022. All rights reserved.