Java tutorial
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; public class Main { public static void main(String[] args) throws Exception { FileInputStream is = new FileInputStream("c:/test.txt"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); BufferedOutputStream bos = new BufferedOutputStream(baos); } }