org.docx4j.openpackaging.parts.WordprocessingML
Class FontTablePart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart
org.docx4j.openpackaging.parts.WordprocessingML.FontTablePart
public final class FontTablePart
- extends JaxbXmlPart
| Fields inherited from class org.docx4j.openpackaging.Base |
partName |
|
Method Summary |
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
processEmbeddings()
|
java.lang.Object |
unmarshal(java.io.InputStream is)
Unmarshal XML data from the specified InputStream and return the
resulting content tree. |
java.lang.Object |
unmarshalDefaultFonts()
Unmarshal a default font table, useful when creating this
part from scratch. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontTablePart
public FontTablePart()
throws InvalidFormatException
- Throws:
InvalidFormatException
FontTablePart
public FontTablePart(PartName partName)
throws InvalidFormatException
- Throws:
InvalidFormatException
init
public void init()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
processEmbeddings
public void processEmbeddings()
unmarshal
public java.lang.Object unmarshal(java.io.InputStream is)
throws javax.xml.bind.JAXBException
- Unmarshal XML data from the specified InputStream and return the
resulting content tree. Validation event location information may
be incomplete when using this form of the unmarshal API.
Implements Unmarshal Global Root Element.
- Specified by:
unmarshal in class JaxbXmlPart
- Parameters:
is - the InputStream to unmarshal XML data from
- Returns:
- the newly created root object of the java content tree
- Throws:
javax.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling
unmarshalDefaultFonts
public java.lang.Object unmarshalDefaultFonts()
throws javax.xml.bind.JAXBException
- Unmarshal a default font table, useful when creating this
part from scratch.
- Returns:
- the newly created root object of the java content tree
- Throws:
javax.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling