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.
| Modifier and Type | Field and Description |
|---|---|
| public static final short | MODE_ASYNCHRONOUS
Create an asynchronous |
| public static final short | MODE_SYNCHRONOUS
Create a synchronous |
| Modifier and Type | Method and Description |
|---|---|
| public LSInput | Returns: The newly created input object.Create a new empty input source object where
|
| public LSOutput | Returns: The newly created output object.Create a new empty output destination object where
|
| public LSParser | Returns: The newly createdLSParser object. This
LSParser is either synchronous or asynchronous
depending on the value of the mode argument.Note By default, the newly created The mode, String mode argument is either
MODE_SYNCHRONOUS or MODE_ASYNCHRONOUS, if
mode is MODE_SYNCHRONOUS then the
LSParser that is created will operate in synchronous
mode, if it's MODE_ASYNCHRONOUS then the
LSParser that is created will operate in asynchronous
mode.An absolute URI representing the type of the schema
language used during the load of a schemaType)Document using the
newly created LSParser. Note that no lexical checking
is done on the absolute URI. In order to create a
LSParser for any kind of schema types (i.e. the
LSParser will be free to use any schema found), use the value
null.Note For W3C XML Schema
[XML Schema Part 1]
, applications must use the value
Create a new |
| public LSSerializer | Returns: The newly createdLSSerializer object.Note By default, the newly created
Create a new |
| MODE_ASYNCHRONOUS | back to summary |
|---|---|
| public static final short MODE_ASYNCHRONOUS Create an asynchronous | |
| MODE_SYNCHRONOUS | back to summary |
|---|---|
| public static final short MODE_SYNCHRONOUS Create a synchronous | |
| createLSInput | back to summary |
|---|---|
| public LSInput createLSInput() Create a new empty input source object where
| |
| createLSOutput | back to summary |
|---|---|
| public LSOutput createLSOutput() Create a new empty output destination object where
| |
| createLSParser | back to summary |
|---|---|
| public LSParser createLSParser(short mode, String schemaType) throws DOMException Create a new
| |
| createLSSerializer | back to summary |
|---|---|
| public LSSerializer createLSSerializer() Create a new
| |