Class ImageInputStreamAdapter
java.lang.Object
java.io.InputStream
org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter
- All Implemented Interfaces:
Closeable,AutoCloseable
Decorates an ImageInputStream with an InputStream interface. The methods
mark()
and reset() are fully supported. The method available() will
always return 0.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ImageInputStreamAdapter. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ImageInputStreamAdapter
Creates a new ImageInputStreamAdapter.- Parameters:
iin- the underlying ImageInputStream
-
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin 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
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-