public final class DocumentOutputStream
extends java.io.OutputStream
POIFSFileSystem instance.| Constructor and Description |
|---|
DocumentOutputStream(DirectoryEntry parent,
java.lang.String name)
Create an OutputStream to create the specified new Entry
|
DocumentOutputStream(DocumentEntry document)
Create an OutputStream from the specified DocumentEntry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
size() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public DocumentOutputStream(DocumentEntry document) throws java.io.IOException
document - the DocumentEntry to be writtenjava.io.IOExceptionpublic DocumentOutputStream(DirectoryEntry parent, java.lang.String name) throws java.io.IOException
parent - Where to create the Entryname - Name of the new entryjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic long size()