public class FastInfosetDefaultHandler extends org.xml.sax.helpers.DefaultHandler implements LexicalHandler, EncodingAlgorithmContentHandler, PrimitiveTypeContentHandler
FastInfosetReader.
This class is available as a convenience for applications: it provides default implementations for all of the callbacks of the following:
Application writers can extend this class when they need to implement only part of an interface; parser writers can instantiate this class to provide default handlers when the application has not supplied its own.| Constructor and Description |
|---|
FastInfosetDefaultHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
booleans(boolean[] b,
int start,
int length)
Receive notification of character data as an array of boolean.
|
void |
bytes(byte[] b,
int start,
int length)
Receive notification of character data as an array of byte.
|
void |
comment(char[] ch,
int start,
int length) |
void |
doubles(double[] d,
int start,
int length)
Receive notification of character data as an array of double.
|
void |
endCDATA() |
void |
endDTD() |
void |
endEntity(String name) |
void |
floats(float[] f,
int start,
int length)
Receive notification of character data as an array of float.
|
void |
ints(int[] i,
int start,
int length)
Receive notification of character data as an array of int.
|
void |
longs(long[] l,
int start,
int length)
Receive notification of character data as an array of long.
|
void |
object(String URI,
int algorithm,
Object o)
Receive notification of encoding algorithm data as an object.
|
void |
octets(String URI,
int algorithm,
byte[] b,
int start,
int length)
Receive notification of encoding algorithm data as an array
of byte.
|
void |
shorts(short[] s,
int start,
int length)
Receive notification of character data as an array of short.
|
void |
startCDATA() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startEntity(String name) |
void |
uuids(long[] msblsb,
int start,
int length)
Receive notification of character data as an two array of UUID.
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void octets(String URI, int algorithm, byte[] b, int start, int length) throws SAXException
EncodingAlgorithmContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing encoding algorithm data.
The Parser will call the method of this interface to report each encoding algorithm data. Parsers MUST return all contiguous characters in a single chunk
Parsers may return all contiguous bytes in a single chunk, or they may split it into several chunks providing that the length of each chunk is of the required length to successfully apply the encoding algorithm to the chunk.
octets in interface EncodingAlgorithmContentHandlerURI - the URI of the encoding algorithmalgorithm - the encoding algorithm indexb - the array of bytestart - the start position in the arraylength - the number of byte to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionEncodingAlgorithmIndexespublic void object(String URI, int algorithm, Object o) throws SAXException
EncodingAlgorithmContentHandlerSuch notifications will occur for a Fast Infoset SAX parser when processing encoding algorithm data that is converted from an array of byte to an object more suitable for processing.
object in interface EncodingAlgorithmContentHandlerURI - the URI of the encoding algorithmalgorithm - the encoding algorithm indexo - the encoding algorithm objectSAXException - any SAX exception, possibly
wrapping another exceptionEncodingAlgorithmIndexespublic void booleans(boolean[] b,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "boolean" encoding algorithm, see subclause 10.7
.
booleans in interface PrimitiveTypeContentHandlerb - the array of booleanstart - the start position in the arraylength - the number of boolean to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void bytes(byte[] b,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "base64" encoding algorithm, see subclause 10.3, or the "hexadecimal" encoding algorithm, see subclause 10.2.
Such a notification may occur for binary data that would
normally require base 64 encoding and reported as character data
using the characters
method
.
bytes in interface PrimitiveTypeContentHandlerb - the array of bytestart - the start position in the arraylength - the number of byte to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void shorts(short[] s,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "short" encoding algorithm, see subclause 10.4
.
shorts in interface PrimitiveTypeContentHandlers - the array of shortstart - the start position in the arraylength - the number of short to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void ints(int[] i,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "int" encoding algorithm, see subclause 10.5
.
ints in interface PrimitiveTypeContentHandleri - the array of intstart - the start position in the arraylength - the number of int to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void longs(long[] l,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "long" encoding algorithm, see subclause 10.6
.
longs in interface PrimitiveTypeContentHandlerl - the array of longstart - the start position in the arraylength - the number of long to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void floats(float[] f,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "float" encoding algorithm, see subclause 10.8
.
floats in interface PrimitiveTypeContentHandlerf - the array of floatstart - the start position in the arraylength - the number of float to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void doubles(double[] d,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "double" encoding algorithm, see subclause 10.9
.
doubles in interface PrimitiveTypeContentHandlerd - the array of doublestart - the start position in the arraylength - the number of double to read from the arraySAXException - any SAX exception, possibly
wrapping another exceptionpublic void uuids(long[] msblsb,
int start,
int length)
throws SAXException
PrimitiveTypeContentHandlerThe application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing data encoded using the "uuid" encoding algorithm, see subclause 10.10
.
uuids in interface PrimitiveTypeContentHandlermsblsb - the array of long containing pairs of most signficant
bits and least significant bits of the UUIDsstart - the start position in the arraylength - the number of long to read from the array. This will
be twice the number of UUIDs, which are pairs of two long valuesSAXException - any SAX exception, possibly
wrapping another exceptionCopyright © 2012 Oracle Corpration. All Rights Reserved.