public interface ObjectData
Modifier and Type | Method and Description |
---|---|
default byte[] |
getBytes()
Convenience method to get the embedded data as byte array.
(将嵌入数据作为字节数组获取的便捷方法。)
|
default DirectoryEntry |
getDirectory()
Gets the object data.
(获取对象数据。)
|
java.lang.String |
getFileName() |
java.io.InputStream |
getInputStream()
Gets an input stream which returns the binary of the embedded data.
(获取返回嵌入数据的二进制文件的输入流。)
|
java.lang.String |
getOLE2ClassName() |
java.io.OutputStream |
getOutputStream() |
default boolean |
hasDirectoryEntry() |
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
(java.io.IOException)
java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
(java.io.IOException)
default byte[] getBytes() throws java.io.IOException
java.io.IOException
(java.io.IOException)
default boolean hasDirectoryEntry()
default DirectoryEntry getDirectory() throws java.io.IOException
hasDirectoryEntry()
. The caller has to close the corresponding POIFSFileSystem
(获取对象数据。只要求那些有数据的人。请参阅 hasDirectoryEntry()。调用者必须关闭相应的 POIFSFileSystem)
java.io.IOException
- if there was an error reading the data.
(java.io.IOException - 如果读取数据时出错。)
java.lang.String getOLE2ClassName()
java.lang.String getFileName()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.