Class ImageInputStreamWrapper
java.lang.Object
java.io.InputStream
com.sun.media.imageioimpl.plugins.jpeg2000.ImageInputStreamWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
This class is designed to wrap a
ImageInputStream into
a InputStream. The reason is that ImageInputStream
implements DataInput but doesn't extend
InputStream. However, the JJ2000 JPEG 2000 packages accepts
a InputStream when reads a JPEG 2000 image file.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anImageInputStreamWrapperfrom the providedImageInputStream. -
Method Summary
Methods inherited from class java.io.InputStream
available, nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ImageInputStreamWrapper
Constructs anImageInputStreamWrapperfrom the providedImageInputStream.- Parameters:
src- TheImageInputStreamto be wrapped.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-