Code example for Writer

Methods: close

0
        buffer[0] = (byte) b;
        write(buffer);
    } 
 
    public void close() throws IOException { 
        writer.close();
        writer = null;
        encoding = null;
    } 
 
    public void flush() throws IOException { 
        writer.flush();
    } 
}