webfunds.sox
Class MailId

java.lang.Object
  |
  +--webfunds.sox.Encodable
        |
        +--webfunds.sox.Id
              |
              +--webfunds.sox.MailId

public class MailId
extends Id

This class represents a Mail identifer, which is the standard way of refering to a mail message or reply.

See Also:
Serialized Form

Fields inherited from class webfunds.sox.Id
id, LEN_MD5, LEN_NAH, LEN_SHA1, MD_MD5, MD_NAH, MD_SHA1
 
Constructor Summary
  MailId()
           
  MailId(byte[] data)
          Recover from byte array (not set this byte array).
protected MailId(Id i)
           
  MailId(java.io.InputStream is)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
static MailId example()
          A life-like example for tests.
static void main(java.lang.String[] args)
           
static MailId newInstance(byte[] b)
           
static MailId newInstance(Receipt receipt)
           
 java.lang.String toString()
          Convert this object to a string.
 
Methods inherited from class webfunds.sox.Id
decode, encode, eq, ex, ex, fp, getByteArray, getBytesFromIdString, getOpenPGPId, hashCode, setByteArray, setOpenPGPId
 
Methods inherited from class webfunds.sox.Encodable
decode, encode, readByteArray, readCertificate, readProperties, readString, writeByteArray, writeCertificate, writeProperties, writeString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailId

public MailId()

MailId

protected MailId(Id i)

MailId

public MailId(byte[] data)
       throws SOXPacketException
Recover from byte array (not set this byte array).

MailId

public MailId(java.io.InputStream is)
       throws java.io.IOException,
              SOXPacketException
Method Detail

newInstance

public static MailId newInstance(byte[] b)

newInstance

public static MailId newInstance(Receipt receipt)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Description copied from class: Id
Convert this object to a string. Note that is equivalent to as encode/decode always mangles one to the other.
Overrides:
toString in class Id

example

public static MailId example()
A life-like example for tests.

main

public static void main(java.lang.String[] args)