Class ExternalProcessExecutor.RingBufferOutput
java.lang.Object
java.io.OutputStream
org.ojalgo.concurrent.ExternalProcessExecutor.RingBufferOutput
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Enclosing class:
ExternalProcessExecutor
Ring buffer OutputStream that retains only the last N bytes written. toString() decodes using the
platform default charset (consistent with previous ByteArrayOutputStream#toString()).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class OutputStream
nullOutputStream, write
-
Field Details
-
buf
private final byte[] buf -
pos
private int pos -
size
private int size
-
-
Constructor Details
-
RingBufferOutput
RingBufferOutput(int capacity)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
toString
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-