MCPcopy Create free account
hub / github.com/ReadyTalk/avian / readUTF

Method readUTF

classpath/java/io/ObjectInputStream.java:205–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

mainMethod · 0.95

Calls 2

rawBlockDataShortMethod · 0.95
readFullyMethod · 0.95

Tested by 1

mainMethod · 0.76