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
- 
コンストラクタの詳細- 
MemoryCacheImageOutputStreampublic MemoryCacheImageOutputStream(OutputStream stream)指定されたOutputStreamに書き込むMemoryCacheImageOutputStreamを構築します。- パラメータ:
- stream- 書込み先の- OutputStream。
- 例外:
- IllegalArgumentException-- streamが- nullの場合。
 
 
- 
- 
メソッドの詳細- 
isCachedpublic boolean isCached()後方へのシークを可能にするために、このImageOutputStreamがデータをキャッシュするため、trueが返されます。- 定義:
- isCached、インタフェース:- ImageInputStream
- オーバーライド:
- isCached、クラス:- ImageInputStreamImpl
- 戻り値:
- true
- 関連項目:
- isCachedMemory(),- isCachedFile()
 
- 
isCachedFilepublic boolean isCachedFile()このImageOutputStreamはファイル・キャッシュを維持しないため、falseが返されます。- 定義:
- isCachedFile、インタフェース:- ImageInputStream
- オーバーライド:
- isCachedFile、クラス:- ImageInputStreamImpl
- 戻り値:
- false
- 関連項目:
- isCached(),- isCachedMemory()
 
- 
isCachedMemorypublic boolean isCachedMemory()このImageOutputStreamはメイン・メモリー・キャッシュを維持するため、trueが返されます。- 定義:
- isCachedMemory、インタフェース:- ImageInputStream
- オーバーライド:
- isCachedMemory、クラス:- ImageInputStreamImpl
- 戻り値:
- true
- 関連項目:
- isCached(),- isCachedFile()
 
- 
closepublic void close() throws IOExceptionこのMemoryCacheImageOutputStreamを閉じます。 保留中のデータはすべて出力にフラッシュされ、キャッシュは解放されます。 出力先OutputStreamは閉じられません。- 例外:
- IOException- 入出力エラーが発生した場合。
 
 
-