com.caucho.portal.generic
Interface PortletByteBuffer


public interface PortletByteBuffer


Method Summary
 void finish()
           
 void flush(java.io.OutputStream out)
           
 int getCapacity()
           
 void reset()
           
 int size()
           
 boolean write(byte[] buf, int off, int len)
           
 boolean write(int b)
           
 

Method Detail

getCapacity

int getCapacity()

write

boolean write(byte[] buf,
              int off,
              int len)
Returns:
false if the buffer is full and the bytes could not be written

write

boolean write(int b)
Returns:
false if the buffer is full and the byte could not be written

flush

void flush(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

size

int size()

reset

void reset()

finish

void finish()