Code example for ByteArrayOutputStream

Methods: writeTo

0
        if ((buffer == null) || (response == null)) {
            return; // should we throw an Exception here 
        } 
 
        OutputStream out = response.getOutputStream();
        buffer.writeTo(out);
 
        buffer = null;
    } 
 
    /** 
     * Clears the buffer with out writing anything out to response. 
     * 
     * @see org.geoserver.ows.ServiceStrategy#abort() 
     */ 
    public void abort() { 
        buffer = null;
    } 
 
    public Object clone() throws CloneNotSupportedException {