import java.io.*;
 
public class BufferedInputStreamTest {
	public static void main( String[] args ) {
		
		// InputStream 객체 생성
		InputStream is = System.in;
		
		// BufferedInputStream 객체 생성
		BufferedInputStream bis = new BufferedInputStream( is );
		
		// byte[] 배열 선언
		byte[] b = new byte[10];
		System.out.print( "Input Data : " );
		
		try {
		// 키보드로부터 입력을 받아 들임
		int inputValue = bis.read( b );
		System.out.println( "inputValue = " + inputValue );
		System.out.println( "String = " + new String( b ));
		
		// 스트림을 끊음
		bis.close();
		} catch ( IOException io ) {
		System.out.println( io.toString() );
		}
	}
}
| font-family |  | 
| font-size |  | 
| font-style |  | 
| font-variant |  | 
| font-weight |  | 
| letter-spacing |  | 
| line-height |  | 
| text-decoration |  | 
| text-align |  | 
| text-indent |  | 
| text-transform |  | 
| white-space |  | 
| word-spacing |  | 
| color |  | 
| bg-attachment |  | 
| bg-color |  | 
| bg-image |  | 
| bg-position |  | 
| bg-repeat |  | 
| width |  | 
| height |  | 
| border-top |  | 
| border-right |  | 
| border-bottom |  | 
| border-left |  | 
| margin |  | 
| padding |  | 
| max-height |  | 
| min-height |  | 
| max-width |  | 
| min-width |  | 
| outline-color |  | 
| outline-style |  | 
| outline-width |  | 
| position |  | 
| top |  | 
| bottom |  | 
| right |  | 
| left |  | 
| float |  | 
| display |  | 
| clear |  | 
| z-index |  | 
| list-style-image |  | 
| list-style-type |  | 
| list-style-position |  | 
| vertical-align |  | 
| border-collapse |  | 
| border-spacing |  | 
| caption-side |  | 
| empty-cells |  | 
| table-layout |  | 
| text-shadow |  | 
| -webkit-box-shadow |  | 
| border-radius |  | 
| overflow |  | 
| cursor |  | 
| visibility |  | 
 
| font-family |  | 
| font-size |  | 
| font-style |  | 
| font-variant |  | 
| font-weight |  | 
| letter-spacing |  | 
| line-height |  | 
| text-decoration |  | 
| text-align |  | 
| text-indent |  | 
| text-transform |  | 
| white-space |  | 
| word-spacing |  | 
| color |  | 
| bg-attachment |  | 
| bg-color |  | 
| bg-image |  | 
| bg-position |  | 
| bg-repeat |  | 
| width |  | 
| height |  | 
| border-top |  | 
| border-right |  | 
| border-bottom |  | 
| border-left |  | 
| margin |  | 
| padding |  | 
| max-height |  | 
| min-height |  | 
| max-width |  | 
| min-width |  | 
| outline-color |  | 
| outline-style |  | 
| outline-width |  | 
| position |  | 
| top |  | 
| bottom |  | 
| right |  | 
| left |  | 
| float |  | 
| display |  | 
| clear |  | 
| z-index |  | 
| list-style-image |  | 
| list-style-type |  | 
| list-style-position |  | 
| vertical-align |  | 
| border-collapse |  | 
| border-spacing |  | 
| caption-side |  | 
| empty-cells |  | 
| table-layout |  | 
| text-shadow |  | 
| -webkit-box-shadow |  | 
| border-radius |  | 
| overflow |  | 
| cursor |  | 
| visibility |  | 
 
            
                    
댓글