Closeable, Flushable, AutoCloseablepublic static class TemporaryBuffer.Heap extends TemporaryBuffer
If the in-memory limit is reached an IOException is thrown, rather than attempting to spool to local disk.
TemporaryBuffer.Heap, TemporaryBuffer.LocalFileDEFAULT_IN_CORE_LIMIT| Constructor | Description |
|---|---|
Heap(int limit) |
Create a new heap buffer with a maximum storage limit.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected OutputStream |
overflow() |
Open the overflow output stream, so the remaining output can be stored.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, writeclose, copy, destroy, doFlush, length, openInputStream, reset, toByteArray, write, write, writeTopublic Heap(int limit)
limit - maximum number of bytes that can be stored in this buffer.
Storing beyond this many will cause an IOException to be
thrown during write.protected OutputStream overflow() throws IOException
TemporaryBufferoverflow in class TemporaryBufferIOException - the buffer cannot create the overflow stream.Copyright © 2018. All rights reserved.