Class MemoryPackagePartOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public final class MemoryPackagePartOutputStream extends OutputStream
Build an output stream for MemoryPackagePart.
-
-
Constructor Summary
Constructors Constructor Description MemoryPackagePartOutputStream(MemoryPackagePart part)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this stream and flush the content.voidflush()Flush this output stream.voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
MemoryPackagePartOutputStream
public MemoryPackagePartOutputStream(MemoryPackagePart part)
-
-
Method Detail
-
write
public void write(int b)
- Specified by:
writein classOutputStream
-
close
public void close() throws IOExceptionClose this stream and flush the content.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- See Also:
flush()
-
flush
public void flush() throws IOExceptionFlush this output stream. This method is called by the close() method. Warning : don't call this method for output consistency.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException- See Also:
close()
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classOutputStream
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
-