in progress...
[jalview.git] / forester / java / src / org / forester / util / EasyWriter.java
1
2 package org.forester.util;
3
4 import java.io.BufferedWriter;
5 import java.io.IOException;
6
7 public final class EasyWriter extends BufferedWriter {
8
9     private final static String LINE_SEPARATOR = ForesterUtil.LINE_SEPARATOR;
10
11     public EasyWriter( final BufferedWriter out ) {
12         super( out );
13     }
14
15     public void println( final String s ) throws IOException {
16         write( s );
17         write( LINE_SEPARATOR );
18     }
19     
20
21     public void println() throws IOException {
22         write( LINE_SEPARATOR );
23     }
24
25     public void print( final String s ) throws IOException {
26         write( s );
27     }
28  
29 }