|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jopendocument.dom.OOUtils
public class OOUtils
Constructor Summary | |
---|---|
OOUtils()
|
Method Summary | |
---|---|
static Color |
decodeRGB(String color)
Decode a color. |
static String |
encodeRGB(Color color)
Encode to the color data type, see section 18.3.8 of OpenDocument-v1.2-part1. |
static org.jdom.input.SAXBuilder |
getBuilder()
Return a builder who doesn't load DTD. |
static org.jdom.input.SAXBuilder |
getBuilderLoadDTD()
Return a builder who loads DTD. |
static org.jdom.xpath.XPath |
getXPath(String path,
XMLVersion version)
Create an XPath with OO namespaces. |
static void |
open(File f)
Open the passed file in OpenOffice. |
static org.jdom.Document |
parseDocument(String doc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OOUtils()
Method Detail |
---|
public static void open(File f) throws IOException
f
- the file to open.
IOException
- if openoffice could not be openedpublic static org.jdom.input.SAXBuilder getBuilder()
public static org.jdom.input.SAXBuilder getBuilderLoadDTD()
public static org.jdom.Document parseDocument(String doc) throws org.jdom.JDOMException
org.jdom.JDOMException
public static final org.jdom.xpath.XPath getXPath(String path, XMLVersion version) throws org.jdom.JDOMException
path
- the xpath to create.version
- XML version.
org.jdom.JDOMException
- if the path is malformed.public static String encodeRGB(Color color)
color
- a color
public static Color decodeRGB(String color)
color
- a RGB color in notation "#rrggbb", can be null
.
encodeRGB(Color)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |