Class JPEGTranscoder.OutputStreamWrapper
java.lang.Object
java.io.OutputStream
org.apache.batik.transcoder.image.JPEGTranscoder.OutputStreamWrapper
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- JPEGTranscoder
This class will never throw an IOException, instead it eats
them and then ignores any future calls to it's interface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a wrapper aroundos
that will not throw IOExceptions. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
os
OutputStream os
-
-
Constructor Details
-
OutputStreamWrapper
OutputStreamWrapper(OutputStream os) Constructs a wrapper aroundos
that will not throw IOExceptions. <@param os>The Stream to wrap.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-