MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / read

Method read

vm/JavaAPI/src/java/io/Reader.java:73–81  ·  view source on GitHub ↗

Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached. Subclasses that intend to support efficient single-character input should override this method.

()

Source from the content-addressed store, hash-verified

71 * Subclasses that intend to support efficient single-character input should override this method.
72 */
73 public int read() throws java.io.IOException{
74 synchronized (lock) {
75 char charArray[] = new char[1];
76 if (read(charArray, 0, 1) != -1) {
77 return charArray[0];
78 }
79 return -1;
80 }
81 }
82
83 /**
84 * Read characters into an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached.

Callers 4

loadMethod · 0.95
getLogContentMethod · 0.95
skipMethod · 0.95
loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected