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.
()
| 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. |
no outgoing calls
no test coverage detected