com.caucho.portal.generic
Interface BufferFactory

All Known Implementing Classes:
BufferFactoryImpl

public interface BufferFactory


Method Summary
 PortletByteBuffer allocateByteBuffer(int size)
          size indicates a minimum size for the buffer.
 PortletCharBuffer allocateCharBuffer(int size)
          size indicates a minimum size for the buffer.
 int getDefaultBufferSize()
          Return the size that will be used if allocateCharBuffer(int) or allocateByteBuffer(int) * is called with a size of -1.
 

Method Detail

getDefaultBufferSize

int getDefaultBufferSize()
Return the size that will be used if allocateCharBuffer(int) or allocateByteBuffer(int) * is called with a size of -1.


allocateCharBuffer

PortletCharBuffer allocateCharBuffer(int size)
size indicates a minimum size for the buffer. A size of -1 indicates that a default size should be used. A size of Integer.MAX_VALUE indicates that a buffer as large as possible should be used.


allocateByteBuffer

PortletByteBuffer allocateByteBuffer(int size)
size indicates a minimum size for the buffer. A size of -1 indicates that a default size should be used. A size of Integer.MAX_VALUE indicates that a buffer as large as possible should be used.