Home » pdfbox-1.1.0-src » org.apache.jempbox.impl » [javadoc | source]
org.apache.jempbox.impl
public class: XMLUtil [javadoc | source]
java.lang.Object
   org.apache.jempbox.impl.XMLUtil
This class with handle some simple XML operations.
Method from org.apache.jempbox.impl.XMLUtil Summary:
asByteArray,   getElement,   getIntValue,   getStringValue,   getStringValue,   newDocument,   parse,   parse,   parse,   save,   save,   setElementableValue,   setIntValue,   setStringValue,   setStringValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jempbox.impl.XMLUtil Detail:
 public static byte[] asByteArray(Document doc,
    String encoding) throws TransformerException 
    Convert the document to an array of bytes.
 public static Element getElement(Element parent,
    String elementName) 
    Get the first instance of an element by name.
 public static Integer getIntValue(Element parent,
    String nodeName) 
    Get the integer value of a subnode.
 public static String getStringValue(Element node) 
    This will get the text value of an element.
 public static String getStringValue(Element parent,
    String nodeName) 
    Get the value of a subnode.
 public static Document newDocument() throws IOException 
    Create a new blank XML document.
 public static Document parse(InputStream is) throws IOException 
    This will parse an XML stream and create a DOM document.
 public static Document parse(InputSource is) throws IOException 
    This will parse an InputSource and create a DOM document.
 public static Document parse(String fileName) throws IOException 
    This will parse an XML stream and create a DOM document.
 public static  void save(Document doc,
    String file,
    String encoding) throws TransformerException 
    Save the XML document to a file.
 public static  void save(Node doc,
    OutputStream outStream,
    String encoding) throws TransformerException 
    Save the XML document to an output stream.
 public static  void setElementableValue(Element parent,
    String name,
    Elementable node) 
    Set an XML element document.
 public static  void setIntValue(Element parent,
    String nodeName,
    Integer intValue) 
    Set the integer value of an element.
 public static  void setStringValue(Element node,
    String value) 
    This will set the text value of an element.
 public static  void setStringValue(Element parent,
    String nodeName,
    String nodeValue) 
    Set the value of an element.