private final JavaPropsSchema _getSchema(ObjectReadContext readCtxt) { FormatSchema sch = readCtxt.getSchema(); if (sch == null) { return JavaPropsParser.DEFAULT_SCHEMA; } return (JavaPropsSchema) sch; }
private final CsvSchema _getSchema(ObjectReadContext readCtxt) { FormatSchema sch = readCtxt.getSchema(); if (sch == null) { return DEFAULT_SCHEMA; } return (CsvSchema) sch; }
@Override protected ProtobufParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len) throws IOException { return new ProtobufParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), (ProtobufSchema) readCtxt.getSchema(), null, data, offset, len, false); }
@Override protected ProtobufParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) throws IOException { byte[] buf = ioCtxt.allocReadIOBuffer(); return new ProtobufParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), (ProtobufSchema) readCtxt.getSchema(), in, buf, 0, 0, true); }