@Override public final int readUnsignedByte() throws IOException { return in.readUnsignedByte(); }
public final int readUnsignedByte () throws IOException { return dis.readUnsignedByte(); }
public int readUnsignedByte () throws IOException { return din.readUnsignedByte(); }
public final int readUnsignedByte () throws IOException { return dis.readUnsignedByte(); }
public int readUnsignedByte () throws IOException { return din.readUnsignedByte(); }
@Override public final int readUnsignedByte() throws IOException { return in.readUnsignedByte(); }
public short readShort () throws IOException { int a = is.read(); int b = readUnsignedByte(); return (short)((a << 8) | b); }
public int readUnsignedShort () throws IOException { int a = is.read(); int b = readUnsignedByte(); return ((a << 8) | b); }
public int readUnsignedShort () throws IOException { int a = is.read(); int b = readUnsignedByte(); return ((a << 8) | b); }
public char readChar () throws IOException { int a = is.read(); int b = readUnsignedByte(); return (char)((a << 8) | b); }
public char readChar () throws IOException { int a = is.read(); int b = readUnsignedByte(); return (char)((a << 8) | b); }
public short readShort () throws IOException { int a = is.read(); int b = readUnsignedByte(); return (short)((a << 8) | b); }
public MethodHandleInfo(DataInputStream in, int index) throws IOException { super(index); refKind = in.readUnsignedByte(); refIndex = in.readUnsignedShort(); }
public int readInt () throws IOException { int a = is.read(); int b = is.read(); int c = is.read(); int d = readUnsignedByte(); return (a << 24) | (b << 16) | (c << 8) | d; }
public int readInt () throws IOException { int a = is.read(); int b = is.read(); int c = is.read(); int d = readUnsignedByte(); return (a << 24) | (b << 16) | (c << 8) | d; }
private int readUtfChar (StringBuilder sb) throws IOException { int a = readUnsignedByte(); if ((a & 0x80) == 0) { sb.append((char)a); return 1; } if ((a & 0xe0) == 0xc0) { int b = readUnsignedByte(); sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F))); return 2; } if ((a & 0xf0) == 0xe0) { int b = readUnsignedByte(); int c = readUnsignedByte(); sb.append((char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))); return 3; } throw new UTFDataFormatException(); }
private int readUtfChar (StringBuilder sb) throws IOException { int a = readUnsignedByte(); if ((a & 0x80) == 0) { sb.append((char)a); return 1; } if ((a & 0xe0) == 0xc0) { int b = readUnsignedByte(); sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F))); return 2; } if ((a & 0xf0) == 0xe0) { int b = readUnsignedByte(); int c = readUnsignedByte(); sb.append((char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))); return 3; } throw new UTFDataFormatException(); }
public MethodHandleInfo(DataInputStream in, int index) throws IOException { super(index); refKind = in.readUnsignedByte(); refIndex = in.readUnsignedShort(); }
private int readResourceInstId() throws IOException { int token = dataIn.readUnsignedByte(); if (token <= MAX_BYTE_RESOURCE_INST_ID) { return token; } else if (token == ILLEGAL_RESOURCE_INST_ID_TOKEN) { return ILLEGAL_RESOURCE_INST_ID; } else if (token == SHORT_RESOURCE_INST_ID_TOKEN) { return dataIn.readUnsignedShort(); } else { /* token == INT_RESOURCE_INST_ID_TOKEN */ return dataIn.readInt(); } }
@Override public int readUnsignedByte() { try { return getStream().readUnsignedByte(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }