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 and Description
    --- | ---
    `protected` | `XSLFFontData()` Create a new XSLFFontData node
    `` | `XSLFFontData(PackagePart part)` Construct XSLFFontData from a package part

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.io.InputStream` | `getInputStream()`
    `java.io.OutputStream` | `getOutputStream()`
    `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.
    `void` | `setData(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, isCommited, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, setCommitted, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 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 java.io.InputStream getInputStream()
                                             throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getOutputStream

          public java.io.OutputStream getOutputStream()

    - #### 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:
        `prepareForCommit` in class `POIXMLDocumentPart`

    - #### setData

          public void setData(byte[] data)
                       throws java.io.IOException

      Throws:
        `java.io.IOException`

Copyright 2020 The Apache Software Foundation or its licensors, as applicable.