Class MimeEntity.NoCloseOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.camel.component.as2.api.entity.MimeEntity.NoCloseOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- MimeEntity
protected static class MimeEntity.NoCloseOutputStream extends FilterOutputStream
An OuputStream wrapper that doesn't close its underlying output stream.Instances of this stream are used by entities to attach encoding streams to underlying output stream in order to write out their encoded content and then flush and close these encoding streams without closing the underlying output stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description NoCloseOutputStream(OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
NoCloseOutputStream
public NoCloseOutputStream(OutputStream os)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
-
-