コード例 #1
0
  /** {@inheritDoc} */
  @Override
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);

    addr = InetAddress.getByAddress(U.readByteArray(in));
  }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    U.writeByteArray(out, addr.getAddress());
  }