com.google.blockly.utils.StringOutputStream

Here are the examples of the java api class com.google.blockly.utils.StringOutputStream taken from open source projects.

1. BlockTest#toXml()

Project: blockly-android
Source File: BlockTest.java
View license
private String toXml(Block block) {
    StringOutputStream out = new StringOutputStream();
    try {
        BlocklyXmlHelper.writeOneBlockToXml(block, out);
    } catch (BlocklySerializerException e) {
        throw new IllegalArgumentException("Failed to serialize block.", e);
    }
    return out.toString();
}