/** * @since 2.8 */ protected void _reportInvalidEOF(String msg, JsonToken currToken) throws JsonParseException { throw new JsonEOFException(this, currToken, "Unexpected end-of-input"+msg); }
/** * @deprecated Since 2.8 use {@link #_reportInvalidEOF(String, JsonToken)} instead */ @Deprecated // since 2.8 protected void _reportInvalidEOF(String msg) throws JsonParseException { throw new JsonEOFException(this, null, "Unexpected end-of-input"+msg); }
protected void _reportInvalidEOF(String msg, JsonToken currToken) throws JsonParseException { throw new JsonEOFException(this, currToken, "Unexpected end-of-input"+msg); }
/** * @since 2.8 */ protected void _reportInvalidEOF(String msg, JsonToken currToken) throws JsonParseException { throw new JsonEOFException(this, currToken, "Unexpected end-of-input"+msg); }
/** * @since 2.8 */ protected void _reportInvalidEOF(String msg, JsonToken currToken) throws JsonParseException { throw new JsonEOFException(this, currToken, "Unexpected end-of-input"+msg); }
/** * @deprecated Since 2.8 use {@link #_reportInvalidEOF(String, JsonToken)} instead */ @Deprecated // since 2.8 protected void _reportInvalidEOF(String msg) throws JsonParseException { throw new JsonEOFException(this, null, "Unexpected end-of-input"+msg); }
/** * @deprecated Since 2.8 use {@link #_reportInvalidEOF(String, JsonToken)} instead */ @Deprecated // since 2.8 protected void _reportInvalidEOF(String msg) throws JsonParseException { throw new JsonEOFException(this, null, "Unexpected end-of-input"+msg); }
@Override protected void doOnComplete() { if (needMoreInput()) { doOnError(new JsonEOFException(currentNonBlockingJsonParser, JsonToken.NOT_AVAILABLE, "Unexpected end-of-input")); } else { super.doOnComplete(); } }
private List<Map<String, Object>> parseGraph(JsonParser jp) throws IOException { while (jp.nextToken() != null) { if (jp.isExpectedStartObjectToken()) { // Read a scan node and convert it into a BDIO file LegacyScanNode scanNode = jp.readValueAs(LegacyScanNode.class); File file = new File(toFileUri(hostName, baseDir, scanNode.toString())) .fileSystemType(scanNode.fileSystemType()) .path(scanNode.path(baseDir, null)) .byteCount(scanNode.byteCount()) .fingerprint(scanNode.fingerprint()); // Add a base relationship if (isBase.test(scanNode)) { offer(base.apply(file)); } if (!offer(file)) { // The entry is full, finish the current entry and start a new one by re-offering the file List<Map<String, Object>> result = finishEntry(); offer(file); return result; } } else if (jp.hasToken(JsonToken.END_ARRAY)) { // This is end of the scan node list, we can ignore the result of the file return finishEntry(); } } // We should hit the end of the array before we run out of tokens throw new JsonEOFException(jp, jp.currentToken(), "unexpected end of stream"); }