Exemplo n.º 1
0
  /** @return */
  public boolean startBinaryMessage() throws IOException {
    if (!_is.readFrameHeader()) {
      return false;
    }

    if (_is.getOpcode() != OP_BINARY) {
      throw new IllegalStateException(
          L.l("expected binary at '{0}' (in {1})", _is.getOpcode(), this));
    }
    return true;
  }