public abstract class ObfuscatingWriter extends Writer
| Constructor and Description |
|---|
ObfuscatingWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosed()
Checks whether or not this stream is already closed.
|
void |
close()
Closes the stream.
|
protected boolean |
closed()
Returns whether or not this stream is already closed.
|
void |
flush()
Flushes the stream.
|
protected void |
onClose()
Closes the stream, cleaning up any resources.
|
protected final void checkClosed()
throws IOException
IOException - If this stream is already closed.public void flush()
throws IOException
checkClosed(). Sub classes can add additional behaviour if needed.flush in interface Flushableflush in class WriterIOException - If an I/O error occurs.public final void close()
throws IOException
actual closing will only be performed once.
After calling this method, checkClosed() will throw an IOException.close in interface Closeableclose in interface AutoCloseableclose in class WriterIOException - If an I/O error occurs.protected final boolean closed()
true if this stream is already closed, or false otherwise.protected void onClose()
throws IOException
IOException - If an I/O error occurs.Copyright © 2020–2023. All rights reserved.