use of com.zimbra.common.calendar.ICalTimeZone in project zm-mailbox by Zimbra.
the class ICalReply method getPrintableData.
@Override
protected String getPrintableData() {
StringBuilder sb = new StringBuilder();
ICalTimeZone localTz = mInvite.getTimeZoneMap().getLocalTimeZone();
sb.append("localTZ=").append(Util.encodeAsMetadata(localTz).toString());
sb.append(", inv=").append(Invite.encodeMetadata(mInvite).toString());
sb.append(", sender=").append(mSender);
return sb.toString();
}
use of com.zimbra.common.calendar.ICalTimeZone in project zm-mailbox by Zimbra.
the class ICalReply method deserializeData.
@Override
protected void deserializeData(RedoLogInput in) throws IOException {
try {
ICalTimeZone localTz = Util.decodeTimeZoneFromMetadata(new Metadata(in.readUTF()));
mInvite = Invite.decodeMetadata(getMailboxId(), new Metadata(in.readUTF()), null, localTz);
mSender = in.readUTF();
} catch (ServiceException ex) {
ex.printStackTrace();
throw new IOException("Cannot read serialized entry for ICalReply " + ex.toString());
}
}
Aggregations