MCPcopy Create free account
hub / github.com/ReadyTalk/avian / read

Method read

classpath/java/io/StringReader.java:21–31  ·  view source on GitHub ↗
(char[] b, int offset, int length)

Source from the content-addressed store, hash-verified

19 }
20
21 public int read(char[] b, int offset, int length) throws IOException {
22 if (length > in.length() - position) {
23 length = in.length() - position;
24 if (length <= 0) {
25 return -1;
26 }
27 }
28 in.getChars(position, position+length, b, offset);
29 position += length;
30 return length;
31 }
32
33 public void close() throws IOException { }
34}

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.65
getCharsMethod · 0.45

Tested by

no test coverage detected