public abstract class AbstractBuffers extends Object implements Buffers
Buffers.Type
Modifier and Type | Field and Description |
---|---|
protected int |
_bufferSize |
protected Buffers.Type |
_bufferType |
protected int |
_headerSize |
protected Buffers.Type |
_headerType |
protected Buffers.Type |
_otherType |
Constructor and Description |
---|
AbstractBuffers(Buffers.Type headerType,
int headerSize,
Buffers.Type bufferType,
int bufferSize,
Buffers.Type otherType) |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize() |
int |
getHeaderSize() |
boolean |
isBuffer(Buffer buffer) |
boolean |
isHeader(Buffer buffer) |
protected Buffer |
newBuffer()
Create a new content Buffer
|
protected Buffer |
newBuffer(int size)
Create a new content Buffer
|
protected Buffer |
newHeader()
Create a new header Buffer
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuffer, getBuffer, getHeader, returnBuffer
protected final Buffers.Type _headerType
protected final int _headerSize
protected final Buffers.Type _bufferType
protected final int _bufferSize
protected final Buffers.Type _otherType
public AbstractBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType)
public int getBufferSize()
public int getHeaderSize()
protected final Buffer newHeader()
protected final Buffer newBuffer()
protected final Buffer newBuffer(int size)
size
- public final boolean isHeader(Buffer buffer)
buffer
- public final boolean isBuffer(Buffer buffer)
buffer
- Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.