FileOutputStream 주요 메소드

CODEDRAGON Development/Java

반응형


 

 

FileOutputStream 주요 메소드

메소드 

설명 

void close() throws IOException

OutputStream을 닫기

void flush() throws IOException

버퍼에 남은 OutputStream을 출력

void write(int i) throws IOException

정수 i의 하위 8비트를 출력

void write(byte buf[])

throws IOException

buf의 내용을 출력

void write(byte buf[], int index, int size) throws IOException

buf index 위치부터 size만큼의 바이트를 출력ㅂ

FileChannel getChannel()

OutputStream과 연관된 유일한 FileChannel 객체를 반환

FileDescriptor getFD()

OutputStream과 연관된 FileDescriptor 객체를 반환한

 

 


반응형