MCPcopy Create free account
hub / github.com/davidgiven/luje / read

Method read

lib/java/io/Reader.java:123–131  ·  view source on GitHub ↗

Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0. Returns -1 if the end of the reader has been reached. @return the character read or -1 if the end of the reader has been reached. @throws IOException if this reader i

()

Source from the content-addressed store, hash-verified

121 * if this reader is closed or some other I/O error occurs.
122 */
123 public int read() throws IOException {
124 synchronized (lock) {
125 char charArray[] = new char[1];
126 if (read(charArray, 0, 1) != -1) {
127 return charArray[0];
128 }
129 return -1;
130 }
131 }
132
133 /**
134 * Reads characters from this reader and stores them in the character array

Callers 1

skipMethod · 0.95

Calls 3

minMethod · 0.95
lengthMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected