public JsonTokenType skip ( ) throws IOException { try { JsonTokenType element = jsonTokenToStructuredElement ( reader . peek ( ) ) ; JsonToken token = currentValue . getKey ( ) ; if ( token == NAME && ( element == JsonTokenType . BEGIN_OBJECT || element == JsonTokenType . BEGIN_ARRAY ) ) { reader . skipValue ( ) ; } consume ( ) ; return element ; } catch ( IOException e ) { throw new IOException ( e ) ; } }
Skips the next element in the stream