@Override protected JsonParser _createParser(InputStream in, IOContext ctxt) throws IOException { Properties props = _loadProperties(in, ctxt); return new JavaPropsParser(ctxt, in, _parserFeatures, _objectCodec, props); }
@Override protected JsonParser _createParser(Reader r, IOContext ctxt) throws IOException { Properties props = _loadProperties(r, ctxt); return new JavaPropsParser(ctxt, r, _parserFeatures, _objectCodec, props); }
protected Properties _loadProperties(InputStream in, IOContext ctxt) throws IOException { // NOTE: Properties default to ISO-8859-1 (aka Latin-1), NOT UTF-8; this // as per JDK documentation return _loadProperties(new Latin1Reader(ctxt, in), ctxt); }
protected Properties _loadProperties(InputStream in, IOContext ctxt) throws IOException { // NOTE: Properties default to ISO-8859-1 (aka Latin-1), NOT UTF-8; this // as per JDK documentation return _loadProperties(new Latin1Reader(ctxt, in), ctxt); }
@Override protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r) throws IOException { Properties props = _loadProperties(r, ioCtxt); return new JavaPropsParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), _getSchema(readCtxt), r, props); }
@Override protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) throws IOException { Properties props = _loadProperties(in, ioCtxt); return new JavaPropsParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), _getSchema(readCtxt), in, props); }