Top Description Fields Constructors Methods
org.glassfish.grizzly.http.io

pack-priv final Class TemporaryHeapBuffer

extends HeapBuffer
Class Inheritance
Imports
java.util.Arrays, org.glassfish.grizzly.Buffer, org.glassfish.grizzly.memory.Buffers, .HeapBuffer, .MemoryManager

HeapBuffer implementation, which might be reset to reference another byte[] at any moment.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv boolean
Inherited from org.glassfish.grizzly.memory.HeapBuffer:
allowBufferDisposebigEndianbyteBuffercapDEBUG_MODEdisposeStackTraceheaplimmarkoffsetorderposreadOnly

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Buffer
cloneContent(final MemoryManager<E extends Buffer> memoryManager)

public void
dispose()

Overrides org.glassfish.grizzly.memory.HeapBuffer.dispose.

Implements org.glassfish.grizzly.Buffer.dispose.

Notify the allocator that the space for this Buffer is no longer needed.

pack-priv boolean
protected void
public void
pack-priv void
reset(final byte[] heap, final int offset, final int len)

Reset the byte[] this Buffer wraps.

Inherited from org.glassfish.grizzly.memory.HeapBuffer:
allowBufferDisposeallowBufferDisposearrayarrayOffsetasReadOnlyBuffercapacitycheckDisposeclearcompactcompareTocreateHeapBufferdumpHexduplicateequalsflipgetgetgetgetgetgetgetChargetChargetDoublegetDoublegetFloatgetFloatgetIntgetIntgetLonggetLonggetShortgetShorthasArrayhashCodehasRemainingisCompositeisDirectisExternalisReadOnlylimitlimitmarkorderorderpositionpositionprepareDisposeprependputputputputputputputputput8BitStringputCharputCharputDoubleputDoubleputFloatputFloatputIntputIntputLongputLongputShortputShortreleaseremainingresetrewindshrinksliceslicesplittoBufferArraytoBufferArraytoBufferArraytoBufferArraytoByteBuffertoByteBuffertoByteBuffer0toByteBufferArraytoByteBufferArraytoByteBufferArraytoByteBufferArraytoStringtoStringContenttoStringContenttoStringContenttrimtryDisposeunderlyingwrapwrap

Field Detail

hasClonedArrayback to summary
pack-priv boolean hasClonedArray
isDisposedback to summary
pack-priv boolean isDisposed

Constructor Detail

TemporaryHeapBufferback to summary
pack-priv TemporaryHeapBuffer()

Method Detail

cloneContentback to summary
pack-priv Buffer cloneContent(final MemoryManager<E extends Buffer> memoryManager)
disposeback to summary
public void dispose()

Overrides org.glassfish.grizzly.memory.HeapBuffer.dispose.

Implements org.glassfish.grizzly.Buffer.dispose.

Doc from org.glassfish.grizzly.Buffer.dispose.

Notify the allocator that the space for this Buffer is no longer needed. All calls to methods on a Buffer will fail after a call to dispose().

Annotations
@Override
isDisposedback to summary
pack-priv boolean isDisposed()
onShareHeapback to summary
protected void onShareHeap()

Overrides org.glassfish.grizzly.memory.HeapBuffer.onShareHeap.

Annotations
@Override
recycleback to summary
public void recycle()
resetback to summary
pack-priv void reset(final byte[] heap, final int offset, final int len)

Reset the byte[] this Buffer wraps.