APIdia Launch Partner
Top Description Constructors Methods
jdk.jfr.internal.consumer

pack-priv abstract Class Parser

extends Object
Class Inheritance
Known Direct Subclasses
jdk.jfr.internal.consumer.ParserFactory.BooleanParser, jdk.jfr.internal.consumer.ParserFactory.ByteParser, jdk.jfr.internal.consumer.ParserFactory.LongParser, jdk.jfr.internal.consumer.ParserFactory.IntegerParser, jdk.jfr.internal.consumer.ParserFactory.ShortParser, jdk.jfr.internal.consumer.ParserFactory.CharacterParser, jdk.jfr.internal.consumer.ParserFactory.FloatParser, jdk.jfr.internal.consumer.ParserFactory.DoubleParser, jdk.jfr.internal.consumer.ParserFactory.ArrayParser, jdk.jfr.internal.consumer.ParserFactory.EventValueConstantParser, jdk.jfr.internal.consumer.ParserFactory.ConstantValueParser, jdk.jfr.internal.consumer.StringParser, jdk.jfr.internal.consumer.StringParser.CharsetParser, jdk.jfr.internal.consumer.StringParser.CharArrayParser, jdk.jfr.internal.consumer.CompositeParser, jdk.jfr.internal.consumer.EventParser
Imports
java.io.IOException

Base class for parsing data from a RecordingInput.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public abstract Object

Returns:

an Object, an Object[], or null
parse
(RecordingInput
input to read from
input
)

Parses data from a RecordingInput and return an object.

public Object

Returns:

a Reference, a Reference[], or null
parseReferences
(RecordingInput
input to read from, not null
input
)

Parses data from a RecordingInput to find references to constants.

public abstract void
skip(RecordingInput
input to read from
input
)

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Parserback to summary
pack-priv Parser()

Method Detail

parseback to summary
public abstract Object parse(RecordingInput input) throws IOException

Parses data from a RecordingInput and return an object.

Parameters
input:RecordingInput

input to read from

Returns:Object

an Object, an Object[], or null

Exceptions
IOException:
if operation couldn't be completed due to I/O problems
parseReferencesback to summary
public Object parseReferences(RecordingInput input) throws IOException

Parses data from a RecordingInput to find references to constants. If data is not a reference, null is returned.

Implementation Specification

The default implementation of this method skips data and returns Object.

Parameters
input:RecordingInput

input to read from, not null

Returns:Object

a Reference, a Reference[], or null

Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public abstract void skip(RecordingInput input) throws IOException

Skips data that would usually be by parsed the parse(RecordingInput) method.

Parameters
input:RecordingInput

input to read from

Exceptions
IOException:
if operation couldn't be completed due to I/O problems