java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
javax.imageio.stream.FileImageOutputStream
- すべての実装されたインタフェース:
Closeable
,DataInput
,DataOutput
,AutoCloseable
,ImageInputStream
,ImageOutputStream
public class FileImageOutputStream extends ImageOutputStreamImpl
出力を
File
またはRandomAccessFile
に直接書き込むImageOutputStream
の実装です。-
フィールドのサマリー
クラス javax.imageio.stream.ImageInputStreamImplで宣言されたフィールド
bitOffset, byteOrder, flushedPos, streamPos
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 FileImageOutputStream(File f)
指定されたFile
に書き込むFileImageOutputStream
を構築します。FileImageOutputStream(RandomAccessFile raf)
指定されたRandomAccessFile
に書き込むFileImageOutputStream
を構築します。 -
メソッドのサマリー
クラス javax.imageio.stream.ImageInputStreamImplで宣言されたメソッド
checkClosed, isCached, isCachedFile, isCachedMemory, length, mark, read, read, read, reset, skipBytes, skipBytes
クラス java.lang.Objectで宣言されたメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インタフェース javax.imageio.stream.ImageInputStreamで宣言されたメソッド
close, flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, read, 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
インタフェース javax.imageio.stream.ImageOutputStreamで宣言されたメソッド
flushBefore, write, write, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF
-
コンストラクタの詳細
-
FileImageOutputStream
public FileImageOutputStream(File f) throws FileNotFoundException, IOException指定されたFile
に書き込むFileImageOutputStream
を構築します。- パラメータ:
f
- 書込み先のFile
。- 例外:
IllegalArgumentException
-f
がnull
の場合。SecurityException
- セキュリティ・マネージャが存在し、ファイルへの書込みアクセスが許可されない場合。FileNotFoundException
-f
が通常のファイルを示さないか、ほかの何らかの理由で読み込みおよび書込み用に開くことができない場合。IOException
- 入出力エラーが発生した場合。
-
FileImageOutputStream
public FileImageOutputStream(RandomAccessFile raf)指定されたRandomAccessFile
に書き込むFileImageOutputStream
を構築します。- パラメータ:
raf
- 書込み先のRandomAccessFile
。- 例外:
IllegalArgumentException
-raf
がnull
の場合。
-
-
メソッドの詳細
-
seek
public void seek(long pos) throws IOException現在のストリーム位置を設定してビット・オフセットを0にリセットします。 シークでファイルの終わりを通過することは正常であり、EOFException
は読込みの場合のみスローされます。 書込みが実行されるまで、ファイル長は増加しません。- パラメータ:
pos
- 目的のファイル・ポインタ位置を示すlong
。- 例外:
IndexOutOfBoundsException
-pos
がフラッシュ位置よりも小さい場合。IOException
- その他の入出力エラーが発生した場合。
-
finalize
@Deprecated(since="9") protected void finalize() throws ThrowableDeprecated.finalize
メソッドは推奨されていません。 クリーンアップを実行するためにfinalize
をオーバーライドするサブクラスは、代替クリーンアップ・メカニズムを使用し、オーバーライドするfinalize
メソッドを削除するように変更する必要があります。finalize
メソッドをオーバーライドする場合、実装では、super.finalize()
がObject.finalize()
の説明に従って呼び出されることを明示的に確認する必要があります。 移行オプションの詳細については、Object.finalize()
の仕様を参照してください。ガベージ・コレクションの前にこのオブジェクトをファイナライズします。close
メソッドを呼び出して、開いている入力ソースをすべて閉じます。 このメソッドを、アプリケーション・コードから呼び出してはいけません。- オーバーライド:
finalize
、クラス:ImageInputStreamImpl
- 例外:
Throwable
- スーパー・クラスのファイナライズ時にエラーが発生した場合。- 関連項目:
WeakReference
,PhantomReference
-