Package org.apache.poi.xslf.usermodel
Class XSLFFontData
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLDocumentPart
-
- org.apache.poi.xslf.usermodel.XSLFFontData
-
@Beta public class XSLFFontData extends POIXMLDocumentPart
A container for fontdata files, i.e. MTX fonts derived from true (TTF) or open (OTF) type fonts.- Since:
- POI 4.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXSLFFontData()Create a new XSLFFontData nodeXSLFFontData(PackagePart part)Construct XSLFFontData from a package part
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()OutputStreamgetOutputStream()protected voidprepareForCommit()XSLFFontData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.voidsetData(byte[] data)-
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, commit, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
-
-
-
-
Constructor Detail
-
XSLFFontData
protected XSLFFontData()
Create a new XSLFFontData node
-
XSLFFontData
public XSLFFontData(PackagePart part)
Construct XSLFFontData from a package part- Parameters:
part- the package part holding the ole data
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Throws:
IOException
-
prepareForCommit
protected void prepareForCommit()
XSLFFontData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.- Overrides:
prepareForCommitin classPOIXMLDocumentPart
-
setData
public void setData(byte[] data) throws IOException- Throws:
IOException
-
-