use of php.runtime.output.OutputBuffer in project jphp by jphp-compiler.
the class Environment method allOutputBuffers.
public List<OutputBuffer> allOutputBuffers() {
Stack<OutputBuffer> outputBuffers = getOutputBuffers();
List<OutputBuffer> result = new ArrayList<OutputBuffer>();
for (OutputBuffer el : outputBuffers) result.add(el);
return result;
}
use of php.runtime.output.OutputBuffer in project jphp by jphp-compiler.
the class Environment method pushOutputBuffer.
public OutputBuffer pushOutputBuffer(Memory callback, int chunkSize, boolean erase) {
Stack<OutputBuffer> outputBuffers = getOutputBuffers();
OutputBuffer buffer = new OutputBuffer(this, peekOutputBuffer(), callback, chunkSize, erase);
buffer.setLevel(outputBuffers.size());
buffer.setType(OutputBuffer.Type.USER);
outputBuffers.push(buffer);
return buffer;
}
Aggregations