public interface EncodingAlgorithmAttributes extends Attributes
Implementations shall ensure that the Attributes.getValue(int)
method
correctly returns a String object even if the attribute is represented
as algorithm data.
If an attribute has algorithm data then the getAlgorithmData(int)
method
shall return a non null
value.
FastInfosetReader
,
XMLReader
Modifier and Type | Method and Description |
---|---|
Object |
getAlgorithmData(int index)
Return the data of the encoding algorithm.
|
int |
getAlgorithmIndex(int index)
Return the index of the encoding algorithm.
|
String |
getAlgorithmURI(int index)
Return the URI of the encoding algorithm.
|
String |
getAlpababet(int index)
Return the alphabet associated with the attribute value.
|
boolean |
getToIndex(int index)
Return the whether the attribute value should be indexed or not.
|
String getAlgorithmURI(int index)
If the algorithm data corresponds to a built-in encoding algorithm then the null is returned.
If the algorithm data corresponds to an application-defined encoding algorithm then the URI of the algorithm is returned.
If getAlgorithmData(int)
returns null then the result of
this method is undefined.
index
- The attribute index (zero-based).int getAlgorithmIndex(int index)
If getAlgorithmData(int)
returns null then the result of
this method is undefined.
index
- The attribute index (zero-based).EncodingAlgorithmIndexes
Object getAlgorithmData(int index)
If the algorithm data corresponds to a built-in encoding algorithm then an Object corresponding to the Java primitive type is returned.
If the algorithm data corresponds to an application-defined encoding
algorithm then an Object that is an instance of byte[]
is returned if there is no EncodingAlgorithm registered for the
application-defined encoding algorithm URI. Otherwise, an Object produced
from the registeredEncodingAlgorithm is returned.
If there no encoding algorithm data associated an attribute then
null
is returned.
index
- The attribute index (zero-based).String getAlpababet(int index)
index
- The attribute index (zero-based).boolean getToIndex(int index)
index
- The attribute index (zero-based).Copyright © 2023 Oracle Corpration. All rights reserved.