Class ClosingEntryOutputStreamWrapper
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.karaf.diagnostic.core.common.ClosingEntryOutputStreamWrapper
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ClosingEntryOutputStreamWrapper extends OutputStream
Output stream which closes entry instead closing whole stream.
-
-
Constructor Summary
Constructors Constructor Description ClosingEntryOutputStreamWrapper(ZipOutputStream outputStream)Creates new OutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
-
-
-
Constructor Detail
-
ClosingEntryOutputStreamWrapper
public ClosingEntryOutputStreamWrapper(ZipOutputStream outputStream)
Creates new OutputStream.- Parameters:
outputStream- Wrapped output stream.
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-