public class ODGStylesReader
extends java.lang.Object
Constructor and Description |
---|
ODGStylesReader()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<AttributeKey,java.lang.Object> |
getAttributes(java.lang.String styleName,
java.lang.String familyName) |
void |
read(java.io.File file)
Reads a <document-styles> element from the specified
XML file.
|
void |
read(java.io.InputStream in)
Reads a <document-styles> element from the specified
input stream.
|
void |
read(IXMLElement root)
Reads a <document-styles> element from the specified
XML element.
|
public java.util.Map<AttributeKey,java.lang.Object> getAttributes(java.lang.String styleName, java.lang.String familyName)
public void read(java.io.File file) throws java.io.IOException
file
- A XML file with a <document> root element
or with a <document-styles> root element.java.io.IOException
public void read(java.io.InputStream in) throws java.io.IOException
in
- A input stream with a <document> root element
or with a <document-styles> root element.java.io.IOException
public void read(IXMLElement root) throws java.io.IOException
root
- A <document> element or a
<document-styles> element.java.io.IOException