CanvasAttributes canvasAttributes
= new CanvasAttributes();
final ByteArrayOutputStream stream = new ByteArrayOutputStream();
final OutputStreamWriter writer = new OutputStreamWriter(stream);
protocol.write(new AbstractPackageBodyOutput() {
public Writer getRealWriter() {
return writer;
}
public OutputStream getRealOutputStream() {