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.IOException
public DocumentOutputStream(DirectoryEntry parent, java.lang.String name) throws java.io.IOException
parent
- Where to create the Entryname
- Name of the new entryjava.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public long size()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.