com.caucho.quercus.env
Class OutputBuffer

java.lang.Object
  extended by com.caucho.quercus.env.OutputBuffer

public class OutputBuffer
extends java.lang.Object

Represents a PHP output buffer


Method Summary
 void clean()
          Cleans (clears) the buffer.
 void close()
          Closes the output buffer.
 void flush()
          Flushs the data in the stream, calling the callback with appropriate flags if necessary.
 Callable getCallback()
          Returns the callback for this output buffer.
 int getChunkSize()
          Returns the chunk size.
 Value getContents()
          Returns the buffer contents.
 boolean getEraseFlag()
          Returns the erase flag.
 long getLength()
          Returns the buffer length.
 int getLevel()
          Returns the nesting level.
 OutputBuffer getNext()
          Returns the next output buffer;
 WriteStream getOut()
          Returns the writer.
 boolean haveFlushed()
          Returns true if this buffer has ever been flushed.
 void setCallback(Callback callback)
          Sets the callback for this output buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNext

public OutputBuffer getNext()
Returns the next output buffer;


getOut

public WriteStream getOut()
Returns the writer.


getContents

public Value getContents()
Returns the buffer contents.


getLength

public long getLength()
Returns the buffer length.


getLevel

public int getLevel()
Returns the nesting level.


haveFlushed

public boolean haveFlushed()
Returns true if this buffer has ever been flushed.


getEraseFlag

public boolean getEraseFlag()
Returns the erase flag.


getChunkSize

public int getChunkSize()
Returns the chunk size.


clean

public void clean()
Cleans (clears) the buffer.


flush

public void flush()
Flushs the data in the stream, calling the callback with appropriate flags if necessary.


close

public void close()
Closes the output buffer.


getCallback

public Callable getCallback()
Returns the callback for this output buffer.


setCallback

public void setCallback(Callback callback)
Sets the callback for this output buffer.