Class SkipParser

java.lang.Object
org.apache.avro.io.parsing.Parser
org.apache.avro.io.parsing.SkipParser

public class SkipParser extends Parser
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.
  • Constructor Details

  • Method Details

    • skipTo

      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.
      Throws:
      IOException
    • skipRepeater

      public final void skipRepeater() throws IOException
      Skips the repeater at the top the stack.
      Throws:
      IOException
    • skipSymbol

      public final void skipSymbol(Symbol symToSkip) throws IOException
      Pushes the given symbol on to the skip and skips it.
      Parameters:
      symToSkip - The symbol that should be skipped.
      Throws:
      IOException