Code example for OutputStream

Methods: flush

0
    public void write(Object value, OutputStream output, Operation operation) throws IOException,
            ServiceException { 
        Assert.isInstanceOf(RawMap.class, value);
        RawMap map = (RawMap) value;
        try { 
            map.writeTo(output);
            output.flush();
        } finally { 
            map.dispose();
        } 
    } 
}