/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bytearrayioapp; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; /** * * @author ICI Makati */ public class ByteArrayIOApp { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { // TODO code application logic here ByteArrayOutputStream outStream = new ByteArrayOutputStream(); String s = "This is a test."; for(int i=0; i