|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjsdsi.Obj
Common superclass of all SPKI/SDSI objects.
Note: As serialization is performed by writing
the object to the the stream as a canonical Sexpression, all
subclasses of jsdsi.Obj should declare their fields as
transient.
| Field Summary | |
protected Obj |
_obj
The replacement SPKI/SDSI object read from the java.io.ObjectInputStream during #readObject(java.io.ObjectInputStream) and to be returned via
readResolve(). |
| Constructor Summary | |
Obj()
|
|
| Method Summary | |
abstract boolean |
equals(java.lang.Object o)
|
abstract int |
hashCode()
|
static Obj |
parseObj(Sexp s)
Parses an S-expression an returns a SDSI object. |
static Obj |
parseObj(SexpList l)
Parses an SexpList an returns a SDSI object. |
protected java.lang.Object |
readResolve()
|
byte[] |
toByteArray()
|
abstract SexpList |
toSexp()
Creates an SexpList -representation from this SDSI-object. |
java.lang.String |
toString()
Returns the S-expression representation of this
SPKI/SDSI object in readable form, using the standard
S-expression charactrer encoding (8859-1). |
java.lang.String |
toString(int offset,
int width,
int last)
Returns the S-expression representation of this
SPKI/SDSI object in readable form, using the standard
S-expression charactrer encoding (8859-1). |
byte[] |
toTransport()
Returns the S-expression representation of this
SPKI/SDSI object in transport form. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected transient Obj _obj
java.io.ObjectInputStream during #readObject(java.io.ObjectInputStream) and to be returned via
readResolve().
| Constructor Detail |
public Obj()
| Method Detail |
public abstract boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)public abstract int hashCode()
Object.hashCode()public abstract SexpList toSexp()
SexpList -representation from this SDSI-object.
SexpList that represents this SDSI-object.public java.lang.String toString()
this
SPKI/SDSI object in readable form, using the standard
S-expression charactrer encoding (8859-1).
Object.toString()
public java.lang.String toString(int offset,
int width,
int last)
this
SPKI/SDSI object in readable form, using the standard
S-expression charactrer encoding (8859-1).
offset - spaces indented from left.width - total width of window, in characters.last - spaces reserved on right (e.g., for closing parens)
public byte[] toTransport()
this
SPKI/SDSI object in transport form. If the transport form is
required as a java.lang.String, then simply pass the
resulting byte[] from this method into Sexp.decodeString(byte[]) (This process is required
as S-expression's must use the 8859-1 character encoding).
public byte[] toByteArray()
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionSerializable
public static Obj parseObj(Sexp s)
throws SexpParseException
s - the S-expression to parse.
s.
SexpParseException
public static Obj parseObj(SexpList l)
throws SexpParseException
SexpList an returns a SDSI object.
l - the SexpList that stores the SDSI object.
l.
SexpParseException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||