@Test public void shouldParseMultipleDocuments() throws Exception { InputStream stream = getClass().getClassLoader().getResourceAsStream("json/multiple-json-files.txt"); DocumentSequence seq = reader.readMultiple(stream); int count = 0; while (true) { Document doc = seq.nextDocument(); if (doc == null) break; ++count; } assertThat(count, is(265)); }
public DocumentSequence readMultiple( InputStream stream ) { return readMultiple(stream, DEFAULT_INTROSPECT); }
JsonReader { public DocumentSequence readMultiple( InputStream stream ) { return readMultiple(stream, DEFAULT_INTROSPECT); } }
JsonReader { public DocumentSequence readMultiple( InputStream stream ) { return readMultiple(stream, DEFAULT_INTROSPECT); }  }
JsonReader { public DocumentSequence readMultiple( InputStream stream ) { return readMultiple(stream, DEFAULT_INTROSPECT); }  Document read( URL url ); Document read( InputStream stream ); Document read( InputStream stream,
                          Charset charset ); Document read( Reader reader ); Document read( String json ); Document read( InputStream stream,
                          boolean introspectStringValues ); Document read( InputStream stream,
                          Charset charset,
                          boolean introspectStringValues ); Document read( Reader reader,
                          boolean introspectStringValues ); Document read( String json,
                          boolean introspectStringValues ); DocumentSequence readMultiple( InputStream stream ); DocumentSequence readMultiple( InputStream stream,
                                          boolean introspectStringValues ); DocumentSequence readMultiple( Reader reader ); DocumentSequence readMultiple( Reader reader,
                                          boolean introspectStringValues ); static Number parseNumber( String value ); }
JsonReader { public DocumentSequence readMultiple( InputStream stream ) { return readMultiple(stream, DEFAULT_INTROSPECT); }  Document read( URL url ); Document read( InputStream stream ); Document read( InputStream stream,
                          Charset charset ); Document read( Reader reader ); Document read( String json ); Document read( InputStream stream,
                          boolean introspectStringValues ); Document read( InputStream stream,
                          Charset charset,
                          boolean introspectStringValues ); Document read( Reader reader,
                          boolean introspectStringValues ); Document read( String json,
                          boolean introspectStringValues ); DocumentSequence readMultiple( InputStream stream ); DocumentSequence readMultiple( InputStream stream,
                                          boolean introspectStringValues ); DocumentSequence readMultiple( Reader reader ); DocumentSequence readMultiple( Reader reader,
                                          boolean introspectStringValues ); static Number parseNumber( String value ); static final boolean DEFAULT_INTROSPECT; }