Class OleObjectBinaryPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart
org.docx4j.openpackaging.parts.WordprocessingML.OleObjectBinaryPart
- Direct Known Subclasses:
VbaProjectBinaryPart,VbaProjectSignatureBin
You can use oleObjectBinaryPart.setBinaryData( ByteBuffer.wrap(bytes) );
to populate this from a byte[]
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) POIFSFileSystemprivate static org.slf4j.LoggerFields inherited from class org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart
externalTargetFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddisplayDirectory(DirectoryNode dir, OutputStream os, String indent, boolean withSizes) Adapted from org.docx4j.org.apache.poi.poifs.dev.POIFSListergetFs()voidinit()voidvoidviewFile(boolean verbose) voidviewFile(OutputStream os, boolean verbose) voidWrite any changes which have been made to POIFSFileSystem, to the underlying ByteBuffer.Methods inherited from class org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart
getBuffer, getBytes, getExternalTarget, isContentEqual, isLoaded, setBinaryData, setBinaryData, setBinaryData, writeDataToOutputStreamMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Field Details
-
log
private static org.slf4j.Logger log -
fs
-
-
Constructor Details
-
OleObjectBinaryPart
- Throws:
InvalidFormatException
-
OleObjectBinaryPart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
getFs
- Throws:
IOException
-
initPOIFSFileSystem
- Throws:
IOException
-
writePOIFSFileSystem
Write any changes which have been made to POIFSFileSystem, to the underlying ByteBuffer. This is necessary if the changes are to be persisted.- Throws:
IOException
-
viewFile
- Throws:
IOException
-
viewFile
- Parameters:
os-verbose-- Throws:
IOException- Since:
- 3.0.0
-
displayDirectory
private void displayDirectory(DirectoryNode dir, OutputStream os, String indent, boolean withSizes) throws IOException Adapted from org.docx4j.org.apache.poi.poifs.dev.POIFSLister- Parameters:
dir-indent-withSizes-- Throws:
IOException
-