()
| 104 | } |
| 105 | |
| 106 | @Deprecated |
| 107 | public String readLine() throws IOException { |
| 108 | int c = read(); |
| 109 | if (c < 0) { |
| 110 | return null; |
| 111 | } else if (c == '\n') { |
| 112 | return ""; |
| 113 | } |
| 114 | StringBuilder builder = new StringBuilder(); |
| 115 | for (;;) { |
| 116 | builder.append((char)c); |
| 117 | c = read(); |
| 118 | if (c < 0 || c == '\n') { |
| 119 | return builder.toString(); |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | public int skipBytes(int n) throws IOException { |
| 125 | for (int count = 0; count < n; ++count) { |