APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jfr.internal.consumer

public final Class StringParser

extends Parser
Class Inheritance
Imports
java.io.IOException, java.nio.charset.Charset

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
public static enum

Field Summary

Modifier and TypeField and Description
private final StringParser.CharArrayParser
private final boolean
private final StringParser.CharsetParser
private final ConstantLookup
private final StringParser.CharsetParser

Constructor Summary

AccessConstructor and Description
public
StringParser(ConstantLookup stringLookup, boolean event)

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public Object
parseReferences(RecordingInput input)

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

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

Field Detail

charArrayParserback to summary
private final StringParser.CharArrayParser charArrayParser
eventback to summary
private final boolean event
latin1parserback to summary
private final StringParser.CharsetParser latin1parser
stringLookupback to summary
private final ConstantLookup stringLookup
utf8parserback to summary
private final StringParser.CharsetParser utf8parser

Constructor Detail

StringParserback to summary
public StringParser(ConstantLookup stringLookup, boolean event)

Method Detail

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

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

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

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Doc from jdk.jfr.internal.consumer.Parser.parseReferences.

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

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

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

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

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class StringParser.CharArrayParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private char[]
private int
private String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
ensureSize(int size)

public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

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

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Field Detail

bufferback to summary
private char[] buffer
lastSizeback to summary
private int lastSize
lastStringback to summary
private String lastString

Constructor Detail

CharArrayParserback to summary
private CharArrayParser()

Method Detail

ensureSizeback to summary
private void ensureSize(int size)
parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

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

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

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

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class StringParser.CharsetParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private byte[]
private final Charset
private int
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
ensureSize(int size)

public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

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

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Field Detail

bufferback to summary
private byte[] buffer
charsetback to summary
private final Charset charset
lastSizeback to summary
private int lastSize
lastStringback to summary
private String lastString

Constructor Detail

CharsetParserback to summary
pack-priv CharsetParser(Charset charset)

Method Detail

ensureSizeback to summary
private void ensureSize(int size)
parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

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

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

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

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

public final Enum StringParser.Encoding

extends Enum<StringParser.Encoding>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private byte
public static final StringParser.Encoding
public static final StringParser.Encoding
public static final StringParser.Encoding
public static final StringParser.Encoding
public static final StringParser.Encoding
public static final StringParser.Encoding

Constructor Summary

AccessConstructor and Description
private
Encoding(int byteValue)

Method Summary

Modifier and TypeMethod and Description
public byte
public boolean
is(byte value)

public static StringParser.Encoding
public static StringParser.Encoding[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

byteValueback to summary
private byte byteValue
CHAR_ARRAYback to summary
public static final StringParser.Encoding CHAR_ARRAY
CONSTANT_POOLback to summary
public static final StringParser.Encoding CONSTANT_POOL
EMPTY_STRINGback to summary
public static final StringParser.Encoding EMPTY_STRING
LATIN1_BYTE_ARRAYback to summary
public static final StringParser.Encoding LATIN1_BYTE_ARRAY
NULLback to summary
public static final StringParser.Encoding NULL
UT8_BYTE_ARRAYback to summary
public static final StringParser.Encoding UT8_BYTE_ARRAY

Constructor Detail

Encodingback to summary
private Encoding(int byteValue)

Method Detail

byteValueback to summary
public byte byteValue()
isback to summary
public boolean is(byte value)
valueOfback to summary
public static StringParser.Encoding valueOf(String name)
valuesback to summary
public static StringParser.Encoding[] values()