private Flux<TokenBuffer> endOfInput() { this.inputFeeder.endOfInput(); try { return parseTokenBufferFlux(); } catch (JsonProcessingException ex) { return Flux.error(new DecodingException( "JSON decoding error: " + ex.getOriginalMessage(), ex)); } catch (IOException ex) { return Flux.error(ex); } }
private Flux<TokenBuffer> endOfInput() { this.inputFeeder.endOfInput(); try { return parseTokenBufferFlux(); } catch (JsonProcessingException ex) { return Flux.error(new DecodingException( "JSON decoding error: " + ex.getOriginalMessage(), ex)); } catch (IOException ex) { return Flux.error(ex); } }
@Override public void onDone() { // We must signal to the parser the end of the input and pull any remaining token, even if it's unexpected. _byteArrayFeeder.endOfInput(); processTokens(); if (_stack.isEmpty()) { _completable.complete(_result); } else { handleException(new Exception("Unexpected end of source at " + _jsonParser.getTokenLocation())); } }
private Flux<TokenBuffer> endOfInput() { this.inputFeeder.endOfInput(); try { return parseTokenBufferFlux(); } catch (JsonProcessingException ex) { return Flux.error(new DecodingException( "JSON decoding error: " + ex.getOriginalMessage(), ex)); } catch (IOException ex) { return Flux.error(ex); } }
private Flux<TokenBuffer> endOfInput() { this.inputFeeder.endOfInput(); try { return parseTokenBufferFlux(); } catch (JsonProcessingException ex) { return Flux.error(new DecodingException( "JSON decoding error: " + ex.getOriginalMessage(), ex)); } catch (IOException ex) { return Flux.error(ex); } }
byteFeeder.endOfInput();