protected IOException expect(String expect, int ch) { return error("expected " + expect + " at " + codeName(ch)); }
protected IOException expect(String expect, int ch) { return error("expected " + expect + " at " + codeName(ch)); }
protected IOException expect(String expect, int ch) { return error("expected " + expect + " at " + codeName(ch)); }
protected IOException expect(String expect, int ch) { return error("expected " + expect + " at " + codeName(ch)); }
/** * Reads the end byte. */ public void readListEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of list ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readEnd() throws IOException { int code = read(); if (code != 'z') throw error("unknown code at " + codeName(code)); }
/** * Reads the end byte. */ public void readMapEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of map ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readEnd() throws IOException { int code = read(); if (code != 'z') throw error("unknown code at " + codeName(code)); }
/** * Reads the end byte. */ public void readMapEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of map ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readListEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of list ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readListEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of list ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readEnd() throws IOException { int code = read(); if (code != 'z') throw error("unknown code at " + codeName(code)); }
/** * Reads the end byte. */ public void readMapEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of map ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readEnd() throws IOException { int code = read(); if (code != 'z') throw error("unknown code at " + codeName(code)); }
/** * Reads the end byte. */ public void readMapEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of map ('z') at " + codeName(code)); }
/** * Reads the end byte. */ public void readListEnd() throws IOException { int code = read(); if (code != 'z') throw error("expected end of list ('z') at " + codeName(code)); }
/** * Completes reading the call * * <p>A successful completion will have a single value: * * <pre> * z * </pre> */ public void completeValueReply() throws IOException { int tag = read(); if (tag != 'z') error("expected end of reply at " + codeName(tag)); }
/** * Completes reading the call * * <p>A successful completion will have a single value: * * <pre> * z * </pre> */ public void completeReply() throws IOException { int tag = read(); if (tag != 'z') error("expected end of reply at " + codeName(tag)); }
/** * Completes reading the call * * <p>A successful completion will have a single value: * * <pre> * z * </pre> */ public void completeValueReply() throws IOException { int tag = read(); if (tag != 'z') error("expected end of reply at " + codeName(tag)); }
/** * Starts reading the call * * <pre> * c major minor * </pre> */ public int readCall() throws IOException { int tag = read(); if (tag != 'c') throw error("expected hessian call ('c') at " + codeName(tag)); int major = read(); int minor = read(); return (major << 16) + minor; }