Package com.luciad.format.xml
Class TLcdXMLDecoder
java.lang.Object
com.luciad.format.xml.TLcdXMLDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable
Deprecated.
A generic XML decoder. All actual handling is done by
ILcdXMLElementReader
's,
provided by an ILcdXMLElementReaderProvider
.
The decoder will read the XML document, and, for each start of an element (opening XML tag), content
or end of an element (closing XML tag), retrieve an element reader via the element reader provider
or another reader, and call the reader's corresponding method, with the current element name stack as
a parameter (and, optionally, other relevant parameters).
A matching reader is retrieved as follows:
- When the start tag of the root element of the document is read, a reader is retrieved immediately via the element reader provider
- Otherwise, a child reader is retrieved via the current element reader (i.e., the reader that processes the parent element)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Processes the given XML source document, and returns the object that is created by the root element's reader - and can thus be anything.Deprecated.Returns the currently usedILcdXMLElementreaderProvider
.Deprecated.Returns the input stream factory that is currently used for creating input streams given source names.Deprecated.Returns the prefix map that is used by this decoder.Deprecated.Returns theILcdXMLSchemaLocationsMap
that contains all schema locations read during the decoding of XML documents.void
setElementReaderProvider
(ILcdXMLElementReaderProvider aReaderSupport) Deprecated.Sets theILcdXMLElementReaderProvider
to be used.void
setInputStreamFactory
(ILcdInputStreamFactory aInputStreamFactory) Deprecated.Sets the input stream factory that will be used for creating input streams given source names.void
setPrefixMap
(ILcdXMLPrefixMap aPrefixMap) Deprecated.Sets the prefix map to be used by this decoder.void
setSchemaLocationsMap
(ILcdXMLSchemaLocationsMap aSchemaLocationsMap) Deprecated.Sets theILcdXMLSchemaLocationsMap
in which all schema locations that are declared in the read XML documents should be stored.
-
Constructor Details
-
TLcdXMLDecoder
public TLcdXMLDecoder()Deprecated.Creates a new XML decoder instance.
-
-
Method Details
-
setInputStreamFactory
Deprecated.Sets the input stream factory that will be used for creating input streams given source names.- Specified by:
setInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Parameters:
aInputStreamFactory
- the input stream factory to be used.
-
getInputStreamFactory
Deprecated.Returns the input stream factory that is currently used for creating input streams given source names.- Specified by:
getInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Returns:
- the input stream factory that is currently used.
-
setElementReaderProvider
Deprecated.Sets theILcdXMLElementReaderProvider
to be used.- Parameters:
aReaderSupport
- theILcdXMLElementreaderProvider
to be used.
-
getElementReaderProvider
Deprecated.Returns the currently usedILcdXMLElementreaderProvider
.- Returns:
- the currently used
ILcdXMLElementreaderProvider
.
-
setPrefixMap
Deprecated.Sets the prefix map to be used by this decoder.- Parameters:
aPrefixMap
- the prefix map to be used by this decoder.- See Also:
-
getPrefixMap
Deprecated.Returns the prefix map that is used by this decoder. Each time the decoder reads an XML prefix declaration (xmlns:prefix="namespace"
), the prefix, together with its corresponding namespace, will be added to the prefix map. This way, the prefix mapping of the original XML document can be shared with other applications (e.g., an XML encoder).- Returns:
- the prefix map that is used by this decoder.
-
getSchemaLocationsMap
Deprecated.Returns theILcdXMLSchemaLocationsMap
that contains all schema locations read during the decoding of XML documents. Each schema location declaration (xsi:schemaLocations="..."
), read during the decoding, will be added to the schema locations map. This way, the schema locations of the original XML document can be shared with other applications (e.g., an XML encoder).- Returns:
- the
ILcdXMLSchemaLocationsMap
that contains all schema locations in the decoded XML documents. - See Also:
-
setSchemaLocationsMap
Deprecated.Sets theILcdXMLSchemaLocationsMap
in which all schema locations that are declared in the read XML documents should be stored.- Parameters:
aSchemaLocationsMap
- theILcdXMLSchemaLocationsMap
in which all schema locations declared in XML documents should be stored.
-
decodeXML
Deprecated.Processes the given XML source document, and returns the object that is created by the root element's reader - and can thus be anything.- Parameters:
aSource
- the full path to the file to be decoded, including the file name.- Returns:
- an object containing (part of) the decoded XML data.
- Throws:
IOException
- thrown if an error occurs during the read process.IllegalArgumentException
- thrown if the supplied argument isnull
.
-
com.format.xml
API has been deprecated. Instead, use thecom.format.xml.bind
API.