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
public class OleObjectBinaryPart extends BinaryPart
You can use oleObjectBinaryPart.setBinaryData( ByteBuffer.wrap(bytes) );
to populate this from a byte[]
- Author:
- jharrop
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OleObjectBinaryPart()
OleObjectBinaryPart(PartName partName)
-
Method Summary
Modifier and Type Method Description POIFSFileSystem
getFs()
void
init()
void
initPOIFSFileSystem()
void
viewFile(boolean verbose)
void
viewFile(java.io.OutputStream os, boolean verbose)
void
writePOIFSFileSystem()
Write 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, writeDataToOutputStream
Methods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersion
Methods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Constructor Details
-
Method Details
-
init
public void init() -
getFs
- Throws:
java.io.IOException
-
initPOIFSFileSystem
public void initPOIFSFileSystem() throws java.io.IOException- Throws:
java.io.IOException
-
writePOIFSFileSystem
public void writePOIFSFileSystem() throws java.io.IOExceptionWrite any changes which have been made to POIFSFileSystem, to the underlying ByteBuffer. This is necessary if the changes are to be persisted.- Throws:
java.io.IOException
-
viewFile
public void viewFile(boolean verbose) throws java.io.IOException- Throws:
java.io.IOException
-
viewFile
public void viewFile(java.io.OutputStream os, boolean verbose) throws java.io.IOException- Parameters:
os
-verbose
-- Throws:
java.io.IOException
- Since:
- 3.0.0
-