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

Method read

classpath/java/io/Reader.java:16–26  ·  view source on GitHub ↗
(CharBuffer buffer)

Source from the content-addressed store, hash-verified

14
15public abstract class Reader implements Closeable, Readable {
16 public int read(CharBuffer buffer) throws IOException {
17 int c = read(buffer.array(),
18 buffer.arrayOffset() + buffer.position(),
19 buffer.remaining());
20
21 if (c > 0) {
22 buffer.position(buffer.position() + c);
23 }
24
25 return c;
26 }
27
28 public int read() throws IOException {
29 char[] buffer = new char[1];

Callers

nothing calls this directly

Calls 4

arrayMethod · 0.45
arrayOffsetMethod · 0.45
positionMethod · 0.45
remainingMethod · 0.45

Tested by

no test coverage detected