Ejemplo n.º 1
0
  @Override
  protected void serializeW(PackageOutputStreamWriter writer) throws ProtocolException {
    super.serializeW(writer);
    try {
      date.serializeContent(writer);

      time.serializeContent(writer);

    } catch (Exception e) {
      throw new ProtocolException(e);
    }
  }
Ejemplo n.º 2
0
  @Override
  protected void deserializeW(PackageInputStreamReader reader) throws ProtocolException {
    super.deserializeW(reader);

    try {
      date = new DatePackage();
      date.deserializeContent(reader);
      time = new TimePackage();
      time.deserializeContent(reader);
    } catch (Exception e) {
      throw new ProtocolException(e);
    }
  }