Package io.github.ai4ci.util
Class FastWriteOnlyOutputStream
java.lang.Object
java.io.OutputStream
io.github.ai4ci.util.FastWriteOnlyOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Deprecated.
Work in progress. This tends to cause crashes and I think has got a memory
leak somewhere. Its supposed to be a single thread drop in replacement
for a BufferedOutput stream that uses java.nio which is supposed to be
faster. The only funky thing it is doing is chunking writes to be whole
block sizes, before writing.
There appears to be an upper limit on allocating byte buffers in a sensible
amoutn of time. Large buffers are very slow to allocate.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
FastWriteOnlyOutputStream
Deprecated.- Throws:
IOException
-
-
Method Details
-
write
Deprecated.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
Deprecated.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
Deprecated.- Specified by:
write
in classOutputStream
- Throws:
IOException
-