org.eclipse.jetty.io
Class AbstractBuffers
java.lang.Object
org.eclipse.jetty.io.AbstractBuffers
- All Implemented Interfaces:
- Buffers
- Direct Known Subclasses:
- PooledBuffers, ThreadLocalBuffers
public abstract class AbstractBuffers
- extends Object
- implements Buffers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_headerType
protected final Buffers.Type _headerType
_headerSize
protected final int _headerSize
_bufferType
protected final Buffers.Type _bufferType
_bufferSize
protected final int _bufferSize
_otherType
protected final Buffers.Type _otherType
AbstractBuffers
public AbstractBuffers(Buffers.Type headerType,
int headerSize,
Buffers.Type bufferType,
int bufferSize,
Buffers.Type otherType)
getBufferSize
public int getBufferSize()
- Returns:
- Returns the buffer size in bytes.
getHeaderSize
public int getHeaderSize()
- Returns:
- Returns the header size in bytes.
newHeader
protected final Buffer newHeader()
- Create a new header Buffer
- Parameters:
size
-
- Returns:
- new Buffer
newBuffer
protected final Buffer newBuffer()
- Create a new content Buffer
- Parameters:
size
-
- Returns:
- new Buffer
newBuffer
protected final Buffer newBuffer(int size)
- Create a new content Buffer
- Parameters:
size
-
- Returns:
- new Buffer
isHeader
public final boolean isHeader(Buffer buffer)
- Parameters:
buffer
-
- Returns:
- True if the buffer is the correct type to be a Header buffer
isBuffer
public final boolean isBuffer(Buffer buffer)
- Parameters:
buffer
-
- Returns:
- True if the buffer is the correct type to be a Header buffer
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.