|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--javax.imageio.stream.ImageInputStreamImpl | +--javax.imageio.stream.ImageOutputStreamImpl | +--javax.imageio.stream.FileImageOutputStream
출력을 File
또는 RandomAccessFile
에 직접 기입하는 ImageOutputStream
의 구현입니다.
필드의 개요 |
클래스 javax.imageio.stream. ImageInputStreamImpl 에서 상속받은 필드 |
bitOffset , byteOrder , flushedPos , streamPos |
생성자의 개요 | |
FileImageOutputStream (File f)
지정된 File 에 기입하는 FileImageOutputStream 를 구축합니다. |
|
FileImageOutputStream (RandomAccessFile raf)
지정된 RandomAccessFile 에 기입하는 FileImageOutputStream 를 구축합니다. |
메소드의 개요 | |
void |
close ()
스트림을 닫습니다. |
long |
length ()
기존의 경우, 스트림의 전체 길이를 돌려줍니다. |
int |
read ()
스트림으로부터 1 바이트를 읽어들여, 그것을 0 에서 255 까지의 정수로서 돌려줍니다. |
int |
read (byte[] b,
int off,
int len)
스트림으로부터 len 바이트까지 읽어들여,b 에 인덱스 off 로부터 저장합니다. |
void |
seek (long pos)
현재의 스트림 위치를 설정해 비트 오프셋(offset)를 0 에 리셋트 합니다. |
void |
write (byte[] b,
int off,
int len)
바이트의 순차 순서를 스트림의 현재 위치에 기입합니다. |
void |
write (int b)
스트림의 현재의 위치에 1 바이트 기입합니다. |
클래스 javax.imageio.stream. ImageOutputStreamImpl 에서 상속받은 메소드 |
flushBits , write , writeBit , writeBits , writeBoolean , writeByte , writeBytes , writeChar , writeChars , writeChars , writeDouble , writeDoubles , writeFloat , writeFloats , writeInt , writeInts , writeLong , writeLongs , writeShort , writeShorts , writeUTF |
클래스 javax.imageio.stream. ImageInputStreamImpl 에서 상속받은 메소드 |
checkClosed , finalize , flush , flushBefore , getBitOffset , getByteOrder , getFlushedPosition , getStreamPosition , isCached , isCachedFile , isCachedMemory , mark , read , readBit , readBits , readBoolean , readByte , readBytes , readChar , readDouble , readFloat , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readInt , readLine , readLong , readShort , readUnsignedByte , readUnsignedInt , readUnsignedShort , readUTF , reset , setBitOffset , setByteOrder , skipBytes , skipBytes |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
인터페이스 javax.imageio.stream. ImageOutputStream 에서 상속받은 메소드 |
flushBefore |
인터페이스 javax.imageio.stream. ImageInputStream 에서 상속받은 메소드 |
flush , getBitOffset , getByteOrder , getFlushedPosition , getStreamPosition , isCached , isCachedFile , isCachedMemory , mark , read , readBit , readBits , readBoolean , readByte , readBytes , readChar , readDouble , readFloat , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readInt , readLine , readLong , readShort , readUnsignedByte , readUnsignedInt , readUnsignedShort , readUTF , reset , setBitOffset , setByteOrder , skipBytes , skipBytes |
생성자의 상세 |
public FileImageOutputStream(File f) throws FileNotFoundException , IOException
File
에 기입하는 FileImageOutputStream
를 구축합니다.
f
- 기입처의 File
IllegalArgumentException
- f
가 null
의 경우
SecurityException
- 시큐러티 매니저가 존재해, 파일에의 기입해 액세스가 허가되지 않는 경우
FileNotFoundException
- f
가 디렉토리인지 다른 어떠한 이유로써 read 및 기입해용으로 열 수가 없는 경우
IOException
- 입출력 에러가 발생했을 경우public FileImageOutputStream(RandomAccessFile raf)
RandomAccessFile
에 기입하는 FileImageOutputStream
를 구축합니다.
raf
- 기입처의 RandomAccessFile
IllegalArgumentException
- raf
가 null
의 경우메소드의 상세 |
public int read() throws IOException
ImageInputStream
의 기술: 스트림내의 비트 오프셋(offset)는 read를 실시하기 전에 0 에 리셋트 됩니다.
ImageInputStream
내의 read
ImageInputStreamImpl
내의 read
IOException
- 입출력 에러가 발생했을 경우public int read(byte[] b, int off, int len) throws IOException
ImageInputStream
의 기술: len
바이트까지 읽어들여,b
에 인덱스 off
로부터 저장합니다. 읽어들인 바이트수를 돌려줍니다. 스트림의 마지막에 이르렀기 때문에 바이트를 읽어들일 수 없는 경우는 -1 을 돌려줍니다.
스트림내의 비트 오프셋(offset)는 read를 실시하기 전에 0 에 리셋트 됩니다.
ImageInputStream
내의 read
ImageInputStreamImpl
내의 read
b
- 기입해지는 바이트 배열off
- 기입처의 b
내의 개시 위치len
- 읽어들이는 최대 byte
수
-1
IOException
- 입출력 에러가 발생했을 경우public void write(int b) throws IOException
ImageOutputStream
의 기술: b
의 상위 24 비트는 무시됩니다.
스트림내의 비트 오프셋(offset)가 제로가 아닌 경우, 현재의 바이트의 나머지는 0 으로 패딩 되어 최초로 기입해집니다. 기입 후는 비트 오프셋(offset)는 0 입니다. 구현측은
의ImageOutputStreamImpl
메소드를 사용해 이것을 프로텍션할 수 있습니다.
flushBits
ImageOutputStream
내의 write
ImageOutputStreamImpl
내의 write
b
- 하위 8 비트가 기입해지는 int
IOException
- 입출력 에러가 발생했을 경우public void write(byte[] b, int off, int len) throws IOException
ImageOutputStream
의 기술: len
가 0 의 경우, 아무것도 기입하지 않습니다. 바이트 b[off]
를 최초로 기입해, 다음에 바이트 bo[off + 1]
을 기입한다, 라고 하는 상태가 됩니다.
스트림내의 비트 오프셋(offset)가 제로가 아닌 경우, 현재의 바이트의 나머지는 0 으로 패딩 되어 최초로 기입해집니다. 기입 후는 비트 오프셋(offset)는 0 입니다. 구현측은
의ImageOutputStreamImpl
메소드를 사용해 이것을 프로텍션할 수 있습니다.
flushBits
ImageOutputStream
내의 write
ImageOutputStreamImpl
내의 write
b
- 기입해지는 byte
배열off
- 데이터의 개시 오프셋(offset)len
- 기입 byte
수
IOException
- 입출력 에러가 발생했을 경우public long length()
ImageInputStream
의 기술: -1
을 돌려줍니다.
ImageInputStream
내의 length
ImageInputStreamImpl
내의 length
long
, 그렇지 않은 경우는 -1
public void seek(long pos) throws IOException
EOFException
는 읽을 경우에게만 슬로우 됩니다. 기입이 실행될 때까지 파일장은 증가하지 않습니다.
ImageInputStream
내의 seek
ImageInputStreamImpl
내의 seek
pos
- 목적의 파일 포인터 위치를 나타내는 long
IndexOutOfBoundsException
- pos
가 플래시 위치보다 작은 경우
IOException
- 그 외의 입출력 에러가 발생했을 경우public void close() throws IOException
ImageInputStream
의 기술: IOException
가 슬로우 될까 부정한 동작이 실행되는 경우가 있습니다. 이 메소드를 호출하면(자), 이 인터페이스를 구현하는 클래스가, 메모리, 디스크 스페이스, 또는 파일 기술자등의 스트림에 관련하는 리소스를 해방할 수 있습니다.
ImageInputStream
내의 close
ImageInputStreamImpl
내의 close
IOException
- 입출력 에러가 발생했을 경우
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.