Class SubImageOutputStream
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
org.monte.media.io.SubImageOutputStream
- All Implemented Interfaces:
Closeable,DataInput,DataOutput,AutoCloseable,ImageInputStream,ImageOutputStream
SubImageOutputStream.- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos -
Constructor Summary
ConstructorsConstructorDescriptionSubImageOutputStream(ImageOutputStream out, long offset, ByteOrder bo, boolean forwardFlushAndClose) SubImageOutputStream(ImageOutputStream out, ByteOrder bo, boolean forwardFlushAndClose) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddispose()voidflush()longlongbooleanisCached()Default implementation returns false.booleanbooleanDefault implementation returns false.longlength()intread()intread(byte[] b, int off, int len) voidseek(long pos) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class javax.imageio.stream.ImageOutputStreamImpl
flushBits, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTFMethods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, finalize, flushBefore, getBitOffset, getByteOrder, mark, 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, skipBytesMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.imageio.stream.ImageInputStream
getBitOffset, getByteOrder, mark, 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, skipBytesMethods inherited from interface javax.imageio.stream.ImageOutputStream
flushBefore
-
Constructor Details
-
SubImageOutputStream
public SubImageOutputStream(ImageOutputStream out, ByteOrder bo, boolean forwardFlushAndClose) throws IOException - Throws:
IOException
-
SubImageOutputStream
public SubImageOutputStream(ImageOutputStream out, long offset, ByteOrder bo, boolean forwardFlushAndClose) throws IOException - Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
read
- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
getStreamPosition
- Specified by:
getStreamPositionin interfaceImageInputStream- Overrides:
getStreamPositionin classImageInputStreamImpl- Throws:
IOException
-
seek
- Specified by:
seekin interfaceImageInputStream- Overrides:
seekin classImageInputStreamImpl- Throws:
IOException
-
flush
- Specified by:
flushin interfaceImageInputStream- Overrides:
flushin classImageInputStreamImpl- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceImageInputStream- Overrides:
closein classImageInputStreamImpl- Throws:
IOException
-
getFlushedPosition
public long getFlushedPosition()- Specified by:
getFlushedPositionin interfaceImageInputStream- Overrides:
getFlushedPositionin classImageInputStreamImpl
-
isCached
public boolean isCached()Default implementation returns false. Subclasses should override this if they cache data.- Specified by:
isCachedin interfaceImageInputStream- Overrides:
isCachedin classImageInputStreamImpl
-
isCachedMemory
public boolean isCachedMemory()Default implementation returns false. Subclasses should override this if they cache data in main memory.- Specified by:
isCachedMemoryin interfaceImageInputStream- Overrides:
isCachedMemoryin classImageInputStreamImpl
-
isCachedFile
public boolean isCachedFile()- Specified by:
isCachedFilein interfaceImageInputStream- Overrides:
isCachedFilein classImageInputStreamImpl
-
length
public long length()- Specified by:
lengthin interfaceImageInputStream- Overrides:
lengthin classImageInputStreamImpl
-
write
- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceImageOutputStream- Specified by:
writein classImageOutputStreamImpl- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceImageOutputStream- Specified by:
writein classImageOutputStreamImpl- Throws:
IOException
-
dispose
- Throws:
IOException
-