java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
- All Implemented Interfaces:
- Closeable,- DataInput,- DataOutput,- AutoCloseable,- ImageInputStream,- ImageOutputStream
- Direct Known Subclasses:
- FileCacheImageOutputStream,- FileImageOutputStream,- MemoryCacheImageOutputStream
public abstract class ImageOutputStreamImpl extends ImageInputStreamImpl implements ImageOutputStream
An abstract class implementing the 
ImageOutputStream interface.
 This class is designed to reduce the number of methods that must
 be implemented by subclasses.- 
Field SummaryFields declared in class javax.imageio.stream.ImageInputStreamImplbitOffset, byteOrder, flushedPos, streamPos
- 
Constructor SummaryConstructors Constructor Description ImageOutputStreamImpl()Constructs anImageOutputStreamImpl.
- 
Method SummaryModifier and Type Method Description protected voidflushBits()If the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one.Methods declared in class javax.imageio.stream.ImageInputStreamImplcheckClosed, finalize, isCached, isCachedFile, isCachedMemory, length, mark, read, read, read, reset, skipBytes, skipBytesMethods declared in class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javax.imageio.stream.ImageInputStreamclose, 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, seek, setBitOffset, setByteOrder, skipBytes, skipBytesMethods declared in interface javax.imageio.stream.ImageOutputStreamflushBefore, write, write, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF
- 
Constructor Details- 
ImageOutputStreamImplpublic ImageOutputStreamImpl()Constructs anImageOutputStreamImpl.
 
- 
- 
Method Details- 
flushBitsIf the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one. This method should be called by subclasses at the beginning of thewrite(int)andwrite(byte[], int, int)methods.- Throws:
- IOException- if an I/O error occurs.
 
 
-