|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.syrup.helpers.XMLOutput
Helper class that enables the serialization of Syrup types.
Constructor Summary | |
XMLOutput()
|
Method Summary | |
protected void |
base64(byte[] b,
org.apache.xml.serializer.SerializationHandler handler)
Utility function that writes a Character SAX event with a base64 encoding of a byte array. |
void |
end(Context c,
org.apache.xml.serializer.SerializationHandler handler)
Description of the Method |
void |
end(LogEntry l,
org.apache.xml.serializer.SerializationHandler handler)
|
void |
end(PTask t,
org.apache.xml.serializer.SerializationHandler handler)
Ends the PTask to be serialized. |
void |
end(java.lang.String tag,
org.apache.xml.serializer.SerializationHandler handler)
Ends an element tag. |
void |
endDocument(java.lang.String tag,
org.apache.xml.serializer.SerializationHandler handler)
Ends the serialization with an end tag. |
protected void |
output(byte[] b,
org.apache.xml.serializer.SerializationHandler handler)
Writes the byte array as SAX event(s). |
void |
output(Context c,
org.apache.xml.serializer.SerializationHandler handler)
Serializes a Context. |
void |
output(Data d,
org.apache.xml.serializer.SerializationHandler handler)
Serializes a Data instance.. |
void |
output(LogEntry l,
org.apache.xml.serializer.SerializationHandler handler)
|
void |
output(PTask t,
org.apache.xml.serializer.SerializationHandler handler)
Serializes a PTask. |
protected org.xml.sax.helpers.AttributesImpl |
portAttributes(Port p)
Returns the mapped Attributes of a Port. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String s1,
java.lang.String s2)
|
void |
start(Context c,
org.apache.xml.serializer.SerializationHandler handler)
Description of the Method |
void |
start(LogEntry l,
org.apache.xml.serializer.SerializationHandler handler)
|
void |
start(PTask t,
org.apache.xml.serializer.SerializationHandler handler)
Starts the PTask to be serialized. |
void |
start(java.lang.String tag,
org.apache.xml.serializer.SerializationHandler handler)
Starts a new element tag. |
void |
startDocument(java.lang.String tag,
org.apache.xml.serializer.SerializationHandler handler)
Starts the serialization with a start tag. |
protected org.xml.sax.helpers.AttributesImpl |
taskAttributes(PTask t)
Returns the mapped Attributes of a PTask. |
protected org.xml.sax.helpers.AttributesImpl |
taskAttributes(Task t)
Returns the mapped Attributes of a Task. |
org.apache.xml.serializer.SerializationHandler |
wrap(java.io.OutputStream o)
Wraps an OutputStream with a SerializationHandler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLOutput()
Method Detail |
public org.apache.xml.serializer.SerializationHandler wrap(java.io.OutputStream o) throws java.lang.Exception
o
- The OutputStream to output XML.
java.lang.Exception
public void startDocument(java.lang.String tag, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
tag
- The start tag.handler
- The serialization handler.
java.lang.Exception
public void endDocument(java.lang.String tag, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
tag
- The end tag.handler
- The serialization handler.
java.lang.Exception
public void start(java.lang.String tag, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
tag
- The element taghandler
- The serialization handler
java.lang.Exception
public void end(java.lang.String tag, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
tag
- The element taghandler
- The serialization handler
java.lang.Exception
public void output(PTask t, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
t
- The Ptask to be serialized.handler
- The serialization handler.
java.lang.Exception
public void start(PTask t, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
t
- The Ptask to start serializing.handler
- The serialization handler.
java.lang.Exception
public void end(PTask t, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
t
- The Ptask to end serializing.handler
- The serialization handler.
java.lang.Exception
public void output(Context c, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
handler
- The serialization handler.c
- The Context to be serialized
java.lang.Exception
public void output(LogEntry l, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
java.lang.Exception
public void start(LogEntry l, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
java.lang.Exception
public void end(LogEntry l, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
java.lang.Exception
public void start(Context c, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
c
- Description of the Parameterhandler
- Description of the Parameter
java.lang.Exception
public void end(Context c, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
c
- Description of the Parameterhandler
- Description of the Parameter
java.lang.Exception
public void output(Data d, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
handler
- The serialization handler.d
- The Data instance.
java.lang.Exception
protected org.xml.sax.helpers.AttributesImpl taskAttributes(Task t)
t
- The Task to map the Attributes to.
protected org.xml.sax.helpers.AttributesImpl portAttributes(Port p)
p
- The Port to map the Attributes to.
protected org.xml.sax.helpers.AttributesImpl taskAttributes(PTask t)
t
- The PTask to map the Attributes to.
protected void output(byte[] b, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
b
- The byte array to be mapped to SAX events.handler
- The handler to send SAX events to.
java.lang.Exception
protected void base64(byte[] b, org.apache.xml.serializer.SerializationHandler handler) throws java.lang.Exception
b
- The byte array to be encoded.handler
- The handler to send SAX events to.
java.lang.Exception
public org.xml.sax.InputSource resolveEntity(java.lang.String s1, java.lang.String s2)
resolveEntity
in interface org.xml.sax.EntityResolver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |