Top Description Inners Fields Constructors Methods
org.apache.avro.io.parsing

public Class SkipParser

extends Parser
Class Inheritance
Imports
java.io.IOException

A parser that capable of skipping as well read and write. This class is used by decoders who (unlink encoders) are required to implement methods to skip.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
SkipParser.SkipHandler

The clients implement this interface to skip symbols and actions.

Field Summary

Modifier and TypeField and Description
private final SkipParser.SkipHandler
Inherited from org.apache.avro.io.parsing.Parser:
posstacksymbolHandler

Constructor Summary

AccessConstructor and Description
public
SkipParser(Symbol root, Parser.ActionHandler symbolHandler, SkipParser.SkipHandler skipHandler)

Method Summary

Modifier and TypeMethod and Description
public final void
skipRepeater()

Skips the repeater at the top the stack.

public final void
skipSymbol(Symbol
The symbol that should be skipped.
symToSkip
)

Pushes the given symbol on to the skip and skips it.

public final void
skipTo(int target)

Skips data by calling skipXyz or readXyz methods on this, until the parser stack reaches the target level.

Inherited from org.apache.avro.io.parsing.Parser:
advancedepthpopSymbolprocessImplicitActionsprocessTrailingImplicitActionspushProductionpushSymbolresettopSymbol

Field Detail

skipHandlerback to summary
private final SkipParser.SkipHandler skipHandler

Constructor Detail

SkipParserback to summary
public SkipParser(Symbol root, Parser.ActionHandler symbolHandler, SkipParser.SkipHandler skipHandler) throws IOException

Method Detail

skipRepeaterback to summary
public final void skipRepeater() throws IOException

Skips the repeater at the top the stack.

skipSymbolback to summary
public final void skipSymbol(Symbol symToSkip) throws IOException

Pushes the given symbol on to the skip and skips it.

Parameters
symToSkip:Symbol

The symbol that should be skipped.

skipToback to summary
public final void skipTo(int target) throws IOException

Skips data by calling skipXyz or readXyz methods on this, until the parser stack reaches the target level.

org.apache.avro.io.parsing back to summary

public Interface SkipParser.SkipHandler

Known Direct Implementers
org.apache.avro.io.ParsingDecoder

The clients implement this interface to skip symbols and actions.

Method Summary

Modifier and TypeMethod and Description
public void
skipAction()

Skips the action at the top of the stack.

public void
skipTopSymbol()

Skips the symbol at the top of the stack.

Method Detail

skipActionback to summary
public void skipAction() throws IOException

Skips the action at the top of the stack.

skipTopSymbolback to summary
public void skipTopSymbol() throws IOException

Skips the symbol at the top of the stack.