Class MemoryPackagePartOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class MemoryPackagePartOutputStream extends java.io.OutputStreamBuild 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)
-
-
-
Constructor Detail
-
MemoryPackagePartOutputStream
public MemoryPackagePartOutputStream(MemoryPackagePart part)
-
-
Method Detail
-
write
public void write(int b)
- Specified by:
writein classjava.io.OutputStream
-
close
public void close() throws java.io.IOExceptionClose this stream and flush the content.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
flush()
-
flush
public void flush() throws java.io.IOExceptionFlush this output stream. This method is called by the close() method. Warning : don't call this method for output consistency.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
close()
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classjava.io.OutputStream
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
-