コード例 #1
0
  /**
   * Write an object textual description in the output stream
   *
   * @param os an OutputStream
   * @throws IOException
   */
  public void dump(OutputStream os) throws IOException {
    _hdr.dump(os);

    if (_clientHandle != null) _clientHandle.dump(os);

    if (_context != null) _context.dump(os);

    for (Enumeration e = _clientSIs.elements(); e.hasMoreElements(); ) {
      COPSClientSI clientSI = (COPSClientSI) e.nextElement();
      clientSI.dump(os);
    }

    // Display any local decisions
    for (Enumeration e = _decisions.keys(); e.hasMoreElements(); ) {

      COPSContext context = (COPSContext) e.nextElement();
      Vector v = (Vector) _decisions.get(context);
      context.dump(os);

      for (Enumeration ee = v.elements(); e.hasMoreElements(); ) {
        COPSLPDPDecision decision = (COPSLPDPDecision) ee.nextElement();
        decision.dump(os);
      }
    }

    if (_integrity != null) {
      _integrity.dump(os);
    }
  }