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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-