public interface DOMImplementationLS
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 | |
|---|---|
static short |
MODE_ASYNCHRONOUS
Create an asynchronous LSParser. |
static short |
MODE_SYNCHRONOUS
Create a synchronous LSParser. |
| Method Summary | |
|---|---|
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. |
LSOutput |
createLSOutput()
Create a new empty output destination object where LSOutput.characterStream,
LSOutput.byteStream, LSOutput.systemId,
LSOutput.encoding are null. |
LSParser |
createLSParser(short mode,
String schemaType)
Create a new LSParser. |
LSSerializer |
createLSSerializer()
Create a new LSSerializer object. |
| Field Detail |
|---|
static final short MODE_SYNCHRONOUS
LSParser.
static final short MODE_ASYNCHRONOUS
LSParser.
| Method Detail |
|---|
LSParser createLSParser(short mode, String schemaType) throws DOMException
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.
mode - The 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.schemaType - An absolute URI representing the type of the schema
language used during the load of a 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
"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.
LSParser object. This
LSParser is either synchronous or asynchronous
depending on the value of the mode argument.
Note: By default, the newly created LSParser
does not contain a DOMErrorHandler, i.e. the value of
the "
error-handler" configuration parameter is null. 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 new LSParser object contains a
reference to the default error handler.
DOMException - NOT_SUPPORTED_ERR: Raised if the requested mode or schema type is
not supported.LSSerializer createLSSerializer()
LSSerializer object.
LSSerializer object.
Note: By default, the newly created
LSSerializer has no DOMErrorHandler, i.e.
the value of the "error-handler" configuration
parameter is null. 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 new LSSerializer object contains a
reference to the default error handler.
LSInput createLSInput()
LSInput.characterStream, LSInput.byteStream
, LSInput.stringData LSInput.systemId,
LSInput.publicId, LSInput.baseURI, and
LSInput.encoding are null, and
LSInput.certifiedText is false.
LSOutput createLSOutput()
LSOutput.characterStream,
LSOutput.byteStream, LSOutput.systemId,
LSOutput.encoding are null.
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)