BufferedWriter: write(String s, int off, int len)


import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String strLine = in.readLine();
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
    out.write(strLine, 0, strLine.length());
    out.flush();
    in.close();
    out.close();
  }
}
Home 
  Java Book 
    File Stream  

BufferedWriter:
  1. BufferedWriter
  2. BufferedWriter: close()
  3. BufferedWriter: flush()
  4. BufferedWriter: write(String str)
  5. BufferedWriter: write(String s, int off, int len)