@ Override public JsonParser get ( ) { if ( parser == null ) { if ( content == null ) { throw new IllegalStateException ( "Handle is not yet populated with content" ) ; } try { parser = getMapper ( ) . getFactory ( ) . createParser ( content ) ; } catch ( JsonParseException e ) { throw new MarkLogicIOException ( e ) ; } catch ( IOException e ) { throw new MarkLogicIOException ( e ) ; } } return parser ; }
JsonParser allows streaming access to content as it arrives .