@Test public void iterateMultiByteCharacterLines() throws Exception { InputStream bytes = makeStream("Ɵ"); MarkableLineParser parser = new MarkableLineParser(bytes); List<String> lines = parser.lines().collect(Collectors.toList()); assertThat(lines, contains("Ɵ")); }
public Stream<String> lines() { return StreamSupport.stream(new LineParsingSpliterator(), false); }
MarkableLineParser { public Stream<String> lines() { return StreamSupport.stream(new LineParsingSpliterator(), false); } }
MarkableLineParser { public Stream<String> lines() { return StreamSupport.stream(new LineParsingSpliterator(), false); } MarkableLineParser(InputStream input); }
MarkableLineParser { public Stream<String> lines() { return StreamSupport.stream(new LineParsingSpliterator(), false); } MarkableLineParser(InputStream input); Stream<String> lines(); void mark(); long getMark(); }
MarkableLineParser { public Stream<String> lines() { return StreamSupport.stream(new LineParsingSpliterator(), false); } MarkableLineParser(InputStream input); Stream<String> lines(); void mark(); long getMark(); static final String LS; static final String CR; }