- 
 public interface DOMImplementationLSDOMImplementationLScontains the factory methods for creating Load and Save objects.The expectation is that an instance of the DOMImplementationLSinterface can be obtained by using binding-specific casting methods on an instance of theDOMImplementationinterface or, if theDocumentsupports the feature"Core"version"3.0"defined in [DOM Level 3 Core] , by using the methodDOMImplementation.getFeaturewith parameter values"LS"(or"LS-Async") and"3.0"(respectively).See also the Document Object Model (DOM) Level 3 Load and Save Specification. - Since:
- 1.5
 
- 
- 
Field SummaryFields Modifier and Type Field Description static shortMODE_ASYNCHRONOUSCreate an asynchronousLSParser.static shortMODE_SYNCHRONOUSCreate a synchronousLSParser.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description LSInputcreateLSInput()Create a new empty input source object whereLSInput.characterStream,LSInput.byteStream,LSInput.stringDataLSInput.systemId,LSInput.publicId,LSInput.baseURI, andLSInput.encodingare null, andLSInput.certifiedTextis false.LSOutputcreateLSOutput()Create a new empty output destination object whereLSOutput.characterStream,LSOutput.byteStream,LSOutput.systemId,LSOutput.encodingare null.LSParsercreateLSParser(short mode, String schemaType)Create a newLSParser.LSSerializercreateLSSerializer()Create a newLSSerializerobject.
 
- 
- 
- 
Field Detail- 
MODE_SYNCHRONOUSstatic final short MODE_SYNCHRONOUS Create a synchronousLSParser.- See Also:
- Constant Field Values
 
 - 
MODE_ASYNCHRONOUSstatic final short MODE_ASYNCHRONOUS Create an asynchronousLSParser.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createLSParserLSParser createLSParser(short mode, String schemaType) throws DOMException Create a newLSParser. The newly constructed parser may then be configured by means of itsDOMConfigurationobject, and used to parse documents by means of itsparsemethod.- Parameters:
- mode- The- modeargument is either- MODE_SYNCHRONOUSor- MODE_ASYNCHRONOUS, if- modeis- MODE_SYNCHRONOUSthen the- LSParserthat is created will operate in synchronous mode, if it's- MODE_ASYNCHRONOUSthen the- LSParserthat is created will operate in asynchronous mode.
- schemaType- An absolute URI representing the type of the schema language used during the load of a- Documentusing the newly created- LSParser. Note that no lexical checking is done on the absolute URI. In order to create a- LSParserfor 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 - "http://www.w3.org/2001/XMLSchema". For XML DTD [XML 1.0], applications must use the value- "http://www.w3.org/TR/REC-xml". Other Schema languages are outside the scope of the W3C and therefore should recommend an absolute URI in order to use this method.
- Returns:
- The newly created LSParserobject. ThisLSParseris either synchronous or asynchronous depending on the value of themodeargument.Note: By default, the newly created LSParserdoes not contain aDOMErrorHandler, i.e. the value of the "error-handler" configuration parameter isnull. However, implementations may provide a default error handler at creation time. In that case, the initial value of the"error-handler"configuration parameter on the newLSParserobject contains a reference to the default error handler.
- Throws:
- DOMException- NOT_SUPPORTED_ERR: Raised if the requested mode or schema type is not supported.
 
 - 
createLSSerializerLSSerializer createLSSerializer() Create a newLSSerializerobject.- Returns:
- The newly created LSSerializerobject.Note: By default, the newly created LSSerializerhas noDOMErrorHandler, i.e. the value of the"error-handler"configuration parameter isnull. However, implementations may provide a default error handler at creation time. In that case, the initial value of the"error-handler"configuration parameter on the newLSSerializerobject contains a reference to the default error handler.
 
 - 
createLSInputLSInput createLSInput() Create a new empty input source object whereLSInput.characterStream,LSInput.byteStream,LSInput.stringDataLSInput.systemId,LSInput.publicId,LSInput.baseURI, andLSInput.encodingare null, andLSInput.certifiedTextis false.- Returns:
- The newly created input object.
 
 - 
createLSOutputLSOutput createLSOutput() Create a new empty output destination object whereLSOutput.characterStream,LSOutput.byteStream,LSOutput.systemId,LSOutput.encodingare null.- Returns:
- The newly created output object.
 
 
- 
 
-