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 Throwable非推奨。finalizeメソッドは推奨されていません。 クリーンアップを実行するためにfinalizeをオーバーライドするサブクラスは、代替クリーンアップ・メカニズムを使用し、オーバーライドするfinalizeメソッドを削除するように変更する必要があります。finalizeメソッドをオーバーライドする場合、実装では、super.finalize()がObject.finalize()の説明に従って呼び出されることを明示的に確認する必要があります。 移行オプションの詳細については、Object.finalize()の仕様を参照してください。ガベージ・コレクションの前にこのオブジェクトをファイナライズします。closeメソッドを呼び出して、開いている入力ソースをすべて閉じます。 このメソッドを、アプリケーション・コードから呼び出してはいけません。- オーバーライド:
finalize、クラス:ImageInputStreamImpl- 例外:
Throwable- スーパー・クラスのファイナライズ時にエラーが発生した場合。- 関連項目:
WeakReference,PhantomReference
-