java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
public class CoffeeIOPipe.CMOutputStream
extends java.io.OutputStream
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
setWriteCallback(java.lang.Runnable runner) |
Sets a callback that occurs when a write
occurs.
|
void |
write(int b) |
public void setWriteCallback(java.lang.Runnable runner)
runner
- the optional callbackpublic void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.OutputStream