APIdia Launch Partner
Top Inners Constructors Methods
jdk.jfr.internal.jfc.model

pack-priv final Class Parser

extends Object
Class Inheritance
Imports
java.io.IOException, .Reader, java.text.ParseException, java.util.ArrayDeque, .Deque, jdk.internal.org.xml.sax.Attributes, .InputSource, .SAXException, jdk.internal.org.xml.sax.helpers.DefaultHandler, jdk.internal.util.xml.SAXParser, jdk.internal.util.xml.impl.SAXParserImpl

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static XmlConfiguration
parse(Reader reader)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Parserback to summary
pack-priv Parser()

Method Detail

parseback to summary
pack-priv static XmlConfiguration parse(Reader reader) throws ParseException, IOException
jdk.jfr.internal.jfc.model back to summary

private final Class Parser.ConfigurationHandler

extends DefaultHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final StringBuilder
private XmlConfiguration
private final Deque<XmlElement>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
addAttributes(XmlElement element, Attributes attributes)

public void
characters(char[] ch, int start, int length)

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.characters.

Implements jdk.internal.org.xml.sax.ContentHandler.characters.

Receive notification of character data inside an element.

public void
endElement(String uri, String localName, String qName)

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.endElement.

Implements jdk.internal.org.xml.sax.ContentHandler.endElement.

Receive notification of the end of an element.

public void
startElement(String uri, String localName, String qName, Attributes attributes)

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.startElement.

Implements jdk.internal.org.xml.sax.ContentHandler.startElement.

Receive notification of the start of an element.

Inherited from jdk.internal.org.xml.sax.helpers.DefaultHandler:
endDocumentendPrefixMappingerrorfatalErrorignorableWhitespacenotationDeclprocessingInstructionresolveEntitysetDocumentLocatorskippedEntitystartDocumentstartPrefixMappingunparsedEntityDeclwarning

Field Detail

bufferback to summary
private final StringBuilder buffer
configurationback to summary
private XmlConfiguration configuration
stackback to summary
private final Deque<XmlElement> stack

Constructor Detail

ConfigurationHandlerback to summary
private ConfigurationHandler()

Method Detail

addAttributesback to summary
private void addAttributes(XmlElement element, Attributes attributes)
charactersback to summary
public void characters(char[] ch, int start, int length) throws SAXException

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.characters.

Implements jdk.internal.org.xml.sax.ContentHandler.characters.

Doc from jdk.internal.org.xml.sax.helpers.DefaultHandler.characters.

Receive notification of character data inside an element.

By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).

Annotations
@Override
Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.
endElementback to summary
public void endElement(String uri, String localName, String qName)

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.endElement.

Implements jdk.internal.org.xml.sax.ContentHandler.endElement.

Doc from jdk.internal.org.xml.sax.helpers.DefaultHandler.endElement.

Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).

Annotations
@Override
startElementback to summary
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException

Overrides jdk.internal.org.xml.sax.helpers.DefaultHandler.startElement.

Implements jdk.internal.org.xml.sax.ContentHandler.startElement.

Doc from jdk.internal.org.xml.sax.helpers.DefaultHandler.startElement.

Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Annotations
@Override
Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.