- 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 theImageOutputStreaminterface. This class is designed to reduce the number of methods that must be implemented by subclasses.
- 
- 
Field Summary- 
Fields declared in class javax.imageio.stream.ImageInputStreamImplbitOffset, byteOrder, flushedPos, streamPos
 
- 
 - 
Constructor SummaryConstructors Constructor Description ImageOutputStreamImpl()Constructs anImageOutputStreamImpl.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier 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, skipBytes
 - 
Methods declared in class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods 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, skipBytes
 - 
Methods 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
 
- 
 
- 
- 
- 
Method Detail- 
flushBitsprotected final void flushBits() throws IOExceptionIf 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.
 
 
- 
 
-