public void continueParsing ( ByteBuffer in ) throws SnowflakeSQLException { if ( state == State . UNINITIALIZED ) { throw new SnowflakeSQLException ( SqlState . INTERNAL_ERROR , ErrorCode . INTERNAL_ERROR . getMessageCode ( ) , "Json parser hasn't been initialized!" ) ; } // If stopped during a \\u, continue here if ( partialEscapedUnicode . position ( ) > 0 ) { int lenToCopy = Math . min ( 12 - partialEscapedUnicode . position ( ) , in . remaining ( ) ) ; if ( lenToCopy > partialEscapedUnicode . remaining ( ) ) { resizePartialEscapedUnicode ( lenToCopy ) ; } partialEscapedUnicode . put ( in . array ( ) , in . arrayOffset ( ) + in . position ( ) , lenToCopy ) ; in . position ( in . position ( ) + lenToCopy ) ; if ( partialEscapedUnicode . position ( ) < 12 ) { // Not enough data to parse escaped unicode return ; } ByteBuffer toBeParsed = partialEscapedUnicode . duplicate ( ) ; toBeParsed . flip ( ) ; continueParsingInternal ( toBeParsed , false ) ; partialEscapedUnicode . clear ( ) ; } continueParsingInternal ( in , false ) ; }
Continue parsing with the given data