org.apache.avro.io.parsing
Class SkipParser
java.lang.Object
   org.apache.avro.io.parsing.Parser
org.apache.avro.io.parsing.Parser
       org.apache.avro.io.parsing.SkipParser
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.
| Nested Class Summary | 
| static interface | SkipParser.SkipHandlerThe clients implement this interface to skip symbols and actions.
 | 
 
 
 
 
 
| Method Summary | 
|  void | skipRepeater()Skips the repeater at the top the stack.
 | 
|  void | skipSymbol(Symbol symToSkip)Pushes the given symbol on to the skip and skips it.
 | 
|  void | skipTo(int target)Skips data by calling
 skipXyzorreadXyzmethods onthis, until the
 parser stack reaches the target level. | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SkipParser
public SkipParser(Symbol root,
                  Parser.ActionHandler symbolHandler,
                  SkipParser.SkipHandler skipHandler)
           throws IOException
- Throws:
- IOException
skipTo
public final void skipTo(int target)
                  throws IOException
- Skips data by calling skipXyzorreadXyzmethods onthis, 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
 
Copyright © 2010 The Apache Software Foundation