|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.ByteArrayInputStream
바이트 형 정보의 입력 스트림을 구현한 클래스.
Field Summary | |
protected byte[] |
buf
바이트형 정보가 저장된 버퍼. |
protected int |
count
buf에 저장된 바이트 정보량. |
protected int |
mark
mark기능을 위한 위치정보 저장변수. |
protected int |
pos
buf내에서 다음에 읽을 위치. |
Constructor Summary | |
ByteArrayInputStream(byte[] buf)
특정 바이트 배열 정보를 읽을 수 있도록 새로운 ByteArrayInputStream 객체를 생성한다. |
|
ByteArrayInputStream(byte[] buf,
int offset,
int length)
특정 바이트 배열 정보 중 일부분를 읽을 수 있도록 새로운 ByteArrayInputStream 객체를 생성한다. |
Method Summary | |
int |
available()
현 압력 스트림으로 부터 읽을 수 있는 정보의 갯수를 구한다. |
void |
close()
입력스트림을 닫는다. |
void |
mark(int readlimit)
입력 스트림 내에서 mark정보를 저장한다. |
boolean |
markSupported()
mark기능을 지원하는지 여부를 구한다. |
int |
read()
입력 스트림으로 부터 한 바이트 정보를 읽는다. |
int |
read(byte[] buf,
int offset,
int len)
입력 스트림으로 부터 특정 배열로 바이트 정보를 읽는다. |
void |
reset()
입력 스트림 내에서 다음에 읽을 위치를 mark메소드를 통해 저장한 값으로 복원한다. |
long |
skip(long num_bytes)
입력 스트림을 읽지 않고 특정 갯수만큼 건너 뛴다. |
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte[] buf
protected int pos
protected int mark
protected int count
Constructor Detail |
public ByteArrayInputStream(byte[] buf)
buf
- 입력스트림을 만들 대상.public ByteArrayInputStream(byte[] buf, int offset, int length)
buf
- 입력스트림을 만들 대상.offset
- 입력스트림을 만들 대상의 시작 위치.length
- 입력스트림을 만들 대상의 길이.Method Detail |
public void close() throws IOException
close
in class InputStream
java.io.InputStream
IOException
- public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void mark(int readlimit)
mark
in class InputStream
public void reset()
reset
in class InputStream
java.io.InputStream
IOException
- public long skip(long num_bytes) throws IOException
skip
in class InputStream
num_bytes
- 건너 뛸 갯수.public int read()
read
in class InputStream
public int read(byte[] buf, int offset, int len)
read
in class InputStream
buf
- 바이트 정보를 저장할 배열.offset
- buf에서 저장을 시작할 위치.len
- 읽고자 하는 갯수.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com