336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

package ByteArrayInputStream;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;

public class newByteArrayInputStream {
    public static void main(String[] args)throws IOException{
        try {
            DataInputStream in3=new DataInputStream(new ByteArrayInputStream("a bcdef".getBytes()));
            while(true){
                System.out.println((char)in3.readByte());
            }
        } catch (EOFException e) {
                System.err.println("End of stream");
        }
    }   
}

'Java' 카테고리의 다른 글

FileReader  (0) 2015.01.20
PrintWriter  (0) 2015.01.20
BufferedWriter : flush()  (0) 2015.01.17
BufferedWriter : close()  (0) 2015.01.17
new BufferedWriter(Writer out)  (0) 2015.01.17
Posted by af334