public final class DocumentOutputStream
extends java.io.OutputStream
POIFSFileSystem
instance.
(此类提供编写由 POIFSFileSystem 实例管理的 DocumentEntry 的方法。)
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 written
(document - 要写入的 DocumentEntry)
java.io.IOException
(java.io.IOException)
public DocumentOutputStream(DirectoryEntry parent, java.lang.String name) throws java.io.IOException
parent
- Where to create the Entry
(parent - 在哪里创建条目)
name
- Name of the new entry
(name - 新条目的名称)
java.io.IOException
(java.io.IOException)
public void write(int b) throws java.io.IOException
write
in class
java.io.OutputStream
(写在类 java.io.OutputStream)
java.io.IOException
(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
(java.io.IOException)
public void close() throws java.io.IOException
close
in interface
java.io.Closeable
(在接口 java.io.Closeable 中关闭)
close
in interface
java.lang.AutoCloseable
(在接口 java.lang.AutoCloseable 中关闭)
close
in class
java.io.OutputStream
java.io.IOException
(java.io.IOException)
public long size()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.