Class NDocumentOutputStream
java.lang.Object
java.io.OutputStream
org.docx4j.org.apache.poi.poifs.filesystem.NDocumentOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This class provides methods to write a DocumentEntry managed by a
NPOIFSFileSystem instance.-
Constructor Summary
ConstructorsConstructorDescriptionNDocumentOutputStream(DirectoryEntry parent, String name) Create an OutputStream to create the specified new EntryNDocumentOutputStream(DocumentEntry document) Create an OutputStream from the specified DocumentEntry. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
NDocumentOutputStream
Create an OutputStream from the specified DocumentEntry. The specified entry will be emptied.- Parameters:
document- the DocumentEntry to be written- Throws:
IOException
-
NDocumentOutputStream
Create an OutputStream to create the specified new Entry- Parameters:
parent- Where to create the Entryname- Name of the new entry- Throws:
IOException
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-