|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sail.core.util.MarshallUtils
public class MarshallUtils
Handy XML marshalling utilities for SAIL.
Constructor Summary | |
---|---|
MarshallUtils()
|
Method Summary | |
---|---|
static Curnit |
marshallCycle(Curnit curnit)
Returns a copy of the argument curnit that has been marshalled and unmarshalled. |
static Curnit |
marshallCycle(Curnit curnit,
java.io.OutputStream outputBranch)
Returns a copy of the argument curnit that has been marshalled and unmarshalled. |
static Pod |
marshallCycle(Pod parentPod)
|
static Pod |
marshallCycle(Pod pod,
java.io.OutputStream outputBranch)
|
static Curnit |
readCurnit(java.io.InputStream in)
Reads in a curnit stream and returns a curnit. |
static Pod |
readPod(java.io.InputStream in)
|
static void |
writeCurnit(Curnit curnit,
java.io.OutputStream out)
|
static void |
writePod(Pod pod,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarshallUtils()
Method Detail |
---|
public static Curnit marshallCycle(Curnit curnit) throws java.io.IOException
Returns a copy of the argument curnit that has been marshalled and unmarshalled. Important for ensuring that everything in the incoming curnit can persist through marshalling.
curnit
-
java.io.IOException
public static Curnit marshallCycle(Curnit curnit, java.io.OutputStream outputBranch) throws java.io.IOException
Returns a copy of the argument curnit that has been marshalled and unmarshalled. Important for ensuring that everything in the incoming curnit can persist through marshalling.
Also tees the output to the argument OutputStream.
curnit
- outputBranch
- optional stream to which to tee output
java.io.IOException
public static void writeCurnit(Curnit curnit, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static Curnit readCurnit(java.io.InputStream in)
in
- - curnit stream
public static Pod marshallCycle(Pod pod, java.io.OutputStream outputBranch) throws java.io.IOException
pod
- outputBranch
- optional stream to which to tee output
java.io.IOException
public static Pod marshallCycle(Pod parentPod) throws java.io.IOException
parentPod
-
java.io.IOException
public static Pod readPod(java.io.InputStream in)
public static void writePod(Pod pod, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |