java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
javax.imageio.stream.MemoryCacheImageOutputStream
- すべての実装されたインタフェース:
Closeable,DataInput,DataOutput,AutoCloseable,ImageInputStream,ImageOutputStream
public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl
出力を通常の
OutputStreamに書き込むImageOutputStreamの実装です。 メモリー・バッファには、少なくとも破棄位置と現在の書込み位置との間のデータがキャッシュされます。 OutputStreamを使用するのはコンストラクタのみなので、このクラスは読み込み、変更、または書込み操作に使用できない場合があります。 読込みは、キャッシュに書込み済みでまだフラッシュされていないストリーム部分についてのみ行うことができます。 -
フィールドのサマリー
クラス javax.imageio.stream.ImageInputStreamImplで宣言されたフィールド
bitOffset, byteOrder, flushedPos, streamPos -
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MemoryCacheImageOutputStream(OutputStream stream)指定されたOutputStreamに書き込むMemoryCacheImageOutputStreamを構築します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 voidclose()このMemoryCacheImageOutputStreamを閉じます。booleanisCached()後方へのシークを可能にするために、このImageOutputStreamがデータをキャッシュするため、trueが返されます。booleanisCachedFile()このImageOutputStreamはファイル・キャッシュを維持しないため、falseが返されます。booleanisCachedMemory()このImageOutputStreamはメイン・メモリー・キャッシュを維持するため、trueが返されます。クラス javax.imageio.stream.ImageInputStreamImplで宣言されたメソッド
checkClosed, finalize, 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で宣言されたメソッド
flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, 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, seek, 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
-
コンストラクタの詳細
-
MemoryCacheImageOutputStream
public MemoryCacheImageOutputStream(OutputStream stream)指定されたOutputStreamに書き込むMemoryCacheImageOutputStreamを構築します。- パラメータ:
stream- 書込み先のOutputStream。- 例外:
IllegalArgumentException-streamがnullの場合。
-
-
メソッドの詳細
-
isCached
public boolean isCached()後方へのシークを可能にするために、このImageOutputStreamがデータをキャッシュするため、trueが返されます。- 定義:
isCached、インタフェース:ImageInputStream- オーバーライド:
isCached、クラス:ImageInputStreamImpl- 戻り値:
true- 関連項目:
isCachedMemory(),isCachedFile()
-
isCachedFile
public boolean isCachedFile()このImageOutputStreamはファイル・キャッシュを維持しないため、falseが返されます。- 定義:
isCachedFile、インタフェース:ImageInputStream- オーバーライド:
isCachedFile、クラス:ImageInputStreamImpl- 戻り値:
false- 関連項目:
isCached(),isCachedMemory()
-
isCachedMemory
public boolean isCachedMemory()このImageOutputStreamはメイン・メモリー・キャッシュを維持するため、trueが返されます。- 定義:
isCachedMemory、インタフェース:ImageInputStream- オーバーライド:
isCachedMemory、クラス:ImageInputStreamImpl- 戻り値:
true- 関連項目:
isCached(),isCachedFile()
-
close
public void close() throws IOExceptionこのMemoryCacheImageOutputStreamを閉じます。 保留中のデータはすべて出力にフラッシュされ、キャッシュは解放されます。 出力先OutputStreamは閉じられません。- 例外:
IOException- 入出力エラーが発生した場合。
-