java.io
Interface DataInput

All Known Implementing Classes:
DataInputStream

public interface DataInput

바이트 정보를 읽어서 다른 타입의 정보로 변환하는 입력 스트림을 위한 인터페이스.


Method Summary
 boolean readBoolean()
          입력 스트림에서 한 바이트를 읽은 뒤 0이 아니면 true 0이면 false를 리턴한다.
 byte readByte()
          입력 스트림에서 한 바이트를 읽는다.
 char readChar()
          입력 스트림에서 char형 정보를 읽는다.
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] b)
          바이트 배열로 정보를 읽는다.
 void readFully(byte[] b, int off, int len)
          바이트 배열 일부분으로 정보를 읽는다.
 int readInt()
          입력 스트림에서 정수형 정보를 읽는다.
 long readLong()
          입력 스트림에서 Long형 정보를 읽는다.
 short readShort()
          입력 스트림에서 두 바이트를 읽는다.
 int readUnsignedByte()
          입력 스트림에서 한 바이트를 읽고 unsigned 바이트로 처리해 정수형 정보로 변환 후 리턴한다.
 int readUnsignedShort()
          입력 스트림에서 두 바이트를 읽고 unsigned short로 처리해 정수형 정보로 변환 후 리턴한다.
 String readUTF()
          입력 스트림에서 UTF형식 정보를 읽어 문자열을 만들어 리턴한다.
 int skipBytes(int n)
          입력 스트림에서 정보를 읽지 않고 건너뛴다.
 

Method Detail

readFully

public void readFully(byte[] b)
               throws IOException
바이트 배열로 정보를 읽는다.
Parameters:
b - 읽은 정보를 저장할 배열.
Throws:
IOException -  

readFully

public void readFully(byte[] b,
                      int off,
                      int len)
               throws IOException
바이트 배열 일부분으로 정보를 읽는다.
Parameters:
b - 읽은 정보를 저장할 배열.
off - 저장 시작 위치.
len - 읽을 정보 갯수.
Throws:
IOException -  

skipBytes

public int skipBytes(int n)
              throws IOException
입력 스트림에서 정보를 읽지 않고 건너뛴다.
Parameters:
n - 건너 뛸 갯수.
Returns:
실제로 건너 뛴 갯수.
Throws:
IOException -  

readBoolean

public boolean readBoolean()
                    throws IOException
입력 스트림에서 한 바이트를 읽은 뒤 0이 아니면 true 0이면 false를 리턴한다.
Returns:
boolean 값.
Throws:
IOException -  

readByte

public byte readByte()
              throws IOException
입력 스트림에서 한 바이트를 읽는다.
Returns:
읽은 한 signed 바이트.
Throws:
IOException -  

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
입력 스트림에서 한 바이트를 읽고 unsigned 바이트로 처리해 정수형 정보로 변환 후 리턴한다.
Returns:
읽은 한 unsigned 바이트가 변환된 정수값.
Throws:
IOException -  

readShort

public short readShort()
                throws IOException
입력 스트림에서 두 바이트를 읽는다.
Returns:
읽은 signed short형 정보.
Throws:
IOException -  

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
입력 스트림에서 두 바이트를 읽고 unsigned short로 처리해 정수형 정보로 변환 후 리턴한다.
Returns:
읽은 두 unsigned short가 변환된 정수값.
Throws:
IOException -  

readChar

public char readChar()
              throws IOException
입력 스트림에서 char형 정보를 읽는다.
Returns:
읽은 char형 정보.
Throws:
IOException -  

readInt

public int readInt()
            throws IOException
입력 스트림에서 정수형 정보를 읽는다.
Returns:
읽은 정수형 정보.
Throws:
IOException -  

readLong

public long readLong()
              throws IOException
입력 스트림에서 Long형 정보를 읽는다.
Returns:
읽은 Long형 정보.
Throws:
IOException -  

readFloat

public float readFloat()
                throws IOException

readDouble

public double readDouble()
                  throws IOException

readUTF

public String readUTF()
               throws IOException
입력 스트림에서 UTF형식 정보를 읽어 문자열을 만들어 리턴한다.
Returns:
문자열.
Throws:
IOException -  


AromaSoft Corp. Proprietary and Confidential

(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com