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[]
- Author:
- jharrop
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFs()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
-
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
-