JacksonReader implements DocumentReader, ArrayReader { @Override public Document read(InputStream jsonStream) throws IOException { return parse(factory.createParser(jsonStream)); } private  JacksonReader(boolean handleFloatNumbersAsText); @Override Document read(InputStream jsonStream); @Override Document read(Reader jsonReader); @Override Document read(String json); @Override Document read(File jsonFile); @Override Document read(URL jsonUrl); @Override Document read(byte[] rawBytes); @Override Array readArray(InputStream jsonStream); @Override Array readArray(Reader jsonReader); @Override Array readArray(URL jsonUrl); @Override Array readArray(File jsonFile); @Override Array readArray(String jsonArray); static final JacksonReader DEFAULT_INSTANCE; static final JacksonReader FLOAT_NUMBERS_AS_TEXT_INSTANCE; }
@Test @FixFor("DBZ-657") public void canParseDocumentWithUnescapedControlCharacter() throws Exception { Document document = JacksonReader.DEFAULT_INSTANCE.read( new String(new byte[]{ 123, 34, 97, 13, 98, 34, 58, 49, 50, 51, 125 })); assertThat((Object) document).isEqualTo(Document.create("a\rb", 123)); }