POIFSFileSystem instance.
| Modifier and Type | Field and Description |
|---|---|
| private UnsynchronizedByteArrayOutputStream | _buffer
our buffer, when null we're into normal blocks |
| private boolean | _closed
have we been closed? |
| private final POIFSDocument | _document
the actual Document |
| private int | _document_size
the Document's size, i.e. the size of the big block data - mini block data is cached and not counted |
| private final long | _limit
a write limit or -1 if unlimited |
| private final DocumentProperty | _property
and its Property |
| private POIFSStream | _stream
our main block stream, when we're into normal blocks |
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| public | DocumentOutputStream(DocumentEntry
the DocumentEntry to be written document)Create an OutputStream from the specified DocumentEntry. |
| public | DocumentOutputStream(DirectoryEntry
Where to create the Entry parent, String Name of the new entry name)Create an OutputStream to create the specified new Entry |
| pack-priv | DocumentOutputStream(DocumentEntry
the DocumentEntry to which the data is actually written document, long the maximum number of bytes that can be written limit)Create a DocumentOutputStream |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private static DocumentEntry | |
| private static POIFSDocument | |
| public long | |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| _buffer | back to summary |
|---|---|
| private UnsynchronizedByteArrayOutputStream _buffer our buffer, when null we're into normal blocks | |
| _closed | back to summary |
|---|---|
| private boolean _closed have we been closed? | |
| _document | back to summary |
|---|---|
| private final POIFSDocument _document the actual Document | |
| _document_size | back to summary |
|---|---|
| private int _document_size the Document's size, i.e. the size of the big block data - mini block data is cached and not counted | |
| _limit | back to summary |
|---|---|
| private final long _limit a write limit or -1 if unlimited | |
| _property | back to summary |
|---|---|
| private final DocumentProperty _property and its Property | |
| _stream | back to summary |
|---|---|
| private POIFSStream _stream our main block stream, when we're into normal blocks | |
| _stream_output | back to summary |
|---|---|
| private OutputStream _stream_output | |
| DocumentOutputStream | back to summary |
|---|---|
| public DocumentOutputStream(DocumentEntry document) throws IOException Create an OutputStream from the specified DocumentEntry. The specified entry will be emptied.
| |
| DocumentOutputStream | back to summary |
|---|---|
| public DocumentOutputStream(DirectoryEntry parent, String name) throws IOException Create an OutputStream to create the specified new Entry
| |
| DocumentOutputStream | back to summary |
|---|---|
| pack-priv DocumentOutputStream(DocumentEntry document, long limit) throws IOException Create a DocumentOutputStream
| |
| DocumentOutputStream | back to summary |
|---|---|
| pack-priv DocumentOutputStream(POIFSDocument document, long limit) throws IOException | |
| checkBufferSize | back to summary |
|---|---|
| private void checkBufferSize() throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| createDocument | back to summary |
|---|---|
| private static DocumentEntry createDocument(DirectoryEntry parent, String name) throws IOException | |
| getDocument | back to summary |
|---|---|
| private static POIFSDocument getDocument(DocumentEntry document) throws IOException | |
| size | back to summary |
|---|---|
public long size()
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |