Save This Page
Home » openjdk-7 » org.w3c » dom » ls » [javadoc | source]
org.w3c.dom.ls
public interface: DOMImplementationLS [javadoc | source]

All Known Implementing Classes:
    DeferredDOMImplementationImpl, CoreDOMImplementationImpl, XSImplementationImpl, DOMImplementationImpl, PSVIDOMImplementationImpl

DOMImplementationLS contains the factory methods for creating Load and Save objects.

The expectation is that an instance of the DOMImplementationLS interface can be obtained by using binding-specific casting methods on an instance of the DOMImplementation interface or, if the Document supports the feature "Core" version "3.0" defined in [DOM Level 3 Core] , by using the method DOMImplementation.getFeature with parameter values "LS" (or "LS-Async") and "3.0" (respectively).

See also the Document Object Model (DOM) Level 3 Load and Save Specification.
Field Summary
public static final  short MODE_SYNCHRONOUS    Create a synchronous LSParser
public static final  short MODE_ASYNCHRONOUS    Create an asynchronous LSParser
Method from org.w3c.dom.ls.DOMImplementationLS Summary:
createLSInput,   createLSOutput,   createLSParser,   createLSSerializer
Method from org.w3c.dom.ls.DOMImplementationLS Detail:
 public LSInput createLSInput()
    Create a new empty input source object where LSInput.characterStream, LSInput.byteStream , LSInput.stringData LSInput.systemId, LSInput.publicId, LSInput.baseURI, and LSInput.encoding are null, and LSInput.certifiedText is false.
 public LSOutput createLSOutput()
    Create a new empty output destination object where LSOutput.characterStream, LSOutput.byteStream, LSOutput.systemId, LSOutput.encoding are null.
 public LSParser createLSParser(short mode,
    String schemaType) throws DOMException
    Create a new LSParser. The newly constructed parser may then be configured by means of its DOMConfiguration object, and used to parse documents by means of its parse method.
 public LSSerializer createLSSerializer()
    Create a new LSSerializer object.