|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.xmote.encoding.EncodingFactory
public class EncodingFactory
Singleton factory that stores all IEncoding implementations and is the entry point for encoding/decoding.
| Method Summary | |
|---|---|
void |
addEncoding(IEncoding encoding)
Adds an IEncoding implementation. |
java.lang.Object |
decode(org.jdom.Element root)
Find the decoding implementation and decode the supplied Element. |
org.jdom.Element |
encode(java.lang.Object object)
Find the encoding implementation and encode the supplied object. |
static EncodingFactory |
getInstance()
|
protected void |
initialize()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void initialize()
public static EncodingFactory getInstance()
public void addEncoding(IEncoding encoding)
encoding -
public org.jdom.Element encode(java.lang.Object object)
throws EncodingException
object - The Object to encode.
EncodingException - if a problem is encountered during encoding or if
no matching encoding was found.
public java.lang.Object decode(org.jdom.Element root)
throws EncodingException
root - The Element to decode.
EncodingException - if a problem is encountered during decodinhg or
if no matching decoding was found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||