Class MemoryCacheImageOutputStream
- java.lang.Object
-
- com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
-
- com.tom_roush.harmony.javax.imageio.stream.ImageOutputStreamImpl
-
- com.tom_roush.harmony.javax.imageio.stream.MemoryCacheImageOutputStream
-
- All Implemented Interfaces:
ImageInputStream,ImageOutputStream,DataInput,DataOutput
public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl
-
-
Field Summary
-
Fields inherited from class com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
-
-
Constructor Summary
Constructors Constructor Description MemoryCacheImageOutputStream(OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflushBefore(long pos)ImageInputStream methodbooleanisCached()booleanisCachedFile()booleanisCachedMemory()longlength()intread()intread(byte[] b, int off, int len)voidwrite(byte[] b, int off, int len)voidwrite(int b)DataOutput methods redeclaration-
Methods inherited from class com.tom_roush.harmony.javax.imageio.stream.ImageOutputStreamImpl
flushBits, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF
-
Methods inherited from class com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
checkClosed, finalize, flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, 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, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tom_roush.harmony.javax.imageio.stream.ImageInputStream
flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, 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, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
-
-
-
-
Constructor Detail
-
MemoryCacheImageOutputStream
public MemoryCacheImageOutputStream(OutputStream stream)
-
-
Method Detail
-
write
public void write(int b) throws IOExceptionDescription copied from interface:ImageOutputStreamDataOutput methods redeclaration- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceImageOutputStream- Specified by:
writein classImageOutputStreamImpl- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceImageOutputStream- Specified by:
writein classImageOutputStreamImpl- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
length
public long length()
- Specified by:
lengthin interfaceImageInputStream- Overrides:
lengthin classImageInputStreamImpl
-
isCached
public boolean isCached()
- Specified by:
isCachedin interfaceImageInputStream- Overrides:
isCachedin classImageInputStreamImpl
-
isCachedMemory
public boolean isCachedMemory()
- Specified by:
isCachedMemoryin interfaceImageInputStream- Overrides:
isCachedMemoryin classImageInputStreamImpl
-
isCachedFile
public boolean isCachedFile()
- Specified by:
isCachedFilein interfaceImageInputStream- Overrides:
isCachedFilein classImageInputStreamImpl
-
close
public void close() throws IOException- Specified by:
closein interfaceImageInputStream- Overrides:
closein classImageInputStreamImpl- Throws:
IOException
-
flushBefore
public void flushBefore(long pos) throws IOExceptionDescription copied from interface:ImageOutputStreamImageInputStream method- Specified by:
flushBeforein interfaceImageInputStream- Specified by:
flushBeforein interfaceImageOutputStream- Overrides:
flushBeforein classImageInputStreamImpl- Throws:
IOException
-
-