com.sapportals.wcm.protocol.webdav

Class DomBuilder

java.lang.Object
  extended by com.sapportals.wcm.protocol.webdav.DomBuilder

public class DomBuilder
extends Object

Utility functions for bootstrapping a Document and for parsing it from a stream or a string.

Copyright (c) SAP AG 2001-2004


Constructor Summary
DomBuilder()
           
 
Method Summary
static Document newDocument()
          Create an empty DOM document.
static Document newDocument(IName name)
          Create a DOM document including the document element node.
static Document newDocument(String namespaceUri, String documentElement)
          Create a DOM document including the document element node.
static Document parse(File input)
          Parse a File into a Document
static Document parse(InputStream input)
          Parse an input stream into a Document
static Document parse(String input)
          Parse a string into a Document
static Document parse(XMLMarkup input)
          Parse a string into a Document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomBuilder

public DomBuilder()
Method Detail

newDocument

public static Document newDocument()
Create an empty DOM document.

Returns:
the DOM

newDocument

public static Document newDocument(String namespaceUri,
                                   String documentElement)
Create a DOM document including the document element node.

Parameters:
namespaceUri - namespace of document element
documentElement - local name of document element
Returns:
the DOM

newDocument

public static Document newDocument(IName name)
Create a DOM document including the document element node.

Parameters:
name - IName of document element
Returns:
the DOM

parse

public static Document parse(InputStream input)
                      throws SAXException
Parse an input stream into a Document

Parameters:
input - the input stream
Returns:
the Document
Throws:
SAXException

parse

public static Document parse(File input)
                      throws SAXException,
                             IOException
Parse a File into a Document

Parameters:
input - the input stream
Returns:
the Document
Throws:
SAXException
IOException

parse

public static Document parse(String input)
                      throws SAXException
Parse a string into a Document

Parameters:
input - the input stream
Returns:
the Document
Throws:
SAXException

parse

public static Document parse(XMLMarkup input)
                      throws SAXException
Parse a string into a Document

Parameters:
input - the input stream
Returns:
the Document
Throws:
SAXException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice