()
| 203 | } |
| 204 | |
| 205 | public String readUTF() throws IOException { |
| 206 | int length = rawBlockDataShort(); |
| 207 | if (remainingBlockData < length) { |
| 208 | throw new IOException("Short block data: " |
| 209 | + remainingBlockData + " < " + length); |
| 210 | } |
| 211 | byte[] bytes = new byte[length]; |
| 212 | readFully(bytes); |
| 213 | remainingBlockData -= length; |
| 214 | return new String(bytes, "UTF-8"); |
| 215 | } |
| 216 | |
| 217 | public int skipBytes(int count) throws IOException { |
| 218 | int i = 0; |