Class StreamDescriptorMarshaller
- java.lang.Object
-
- com.levigo.jadice.server.core.util.StreamDescriptorMarshaller
-
public class StreamDescriptorMarshaller extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamDescriptorMarshaller
getInstance()
String
marshal(StreamDescriptor sd)
void
marshal(StreamDescriptor sd, File f)
void
marshal(StreamDescriptor sd, File f, boolean prettyPrint)
void
marshal(StreamDescriptor sd, OutputStream os)
void
marshal(StreamDescriptor sd, OutputStream os, boolean prettyPrint)
void
marshal(StreamDescriptor sd, Writer w)
void
marshal(StreamDescriptor sd, Writer w, boolean prettyPrint)
void
marshal(StreamDescriptor sd, XMLStreamWriter xsw)
void
marshal(List<StreamDescriptor> descriptors, OutputStream os)
StreamDescriptor
unmarshal(File file)
StreamDescriptor
unmarshal(InputStream is)
StreamDescriptor
unmarshal(Reader reader)
StreamDescriptor
unmarshal(String xml)
-
-
-
Method Detail
-
getInstance
public static StreamDescriptorMarshaller getInstance()
-
marshal
public void marshal(StreamDescriptor sd, Writer w) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, Writer w, boolean prettyPrint) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, File f) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, File f, boolean prettyPrint) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, OutputStream os) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, OutputStream os, boolean prettyPrint) throws IOException
- Throws:
IOException
-
marshal
public void marshal(List<StreamDescriptor> descriptors, OutputStream os) throws IOException
- Throws:
IOException
-
marshal
public void marshal(StreamDescriptor sd, XMLStreamWriter xsw) throws IOException, XMLStreamException
- Throws:
IOException
XMLStreamException
-
marshal
public String marshal(StreamDescriptor sd)
-
unmarshal
public StreamDescriptor unmarshal(String xml)
-
unmarshal
public StreamDescriptor unmarshal(File file) throws IOException
- Throws:
IOException
-
unmarshal
public StreamDescriptor unmarshal(InputStream is) throws IOException
- Throws:
IOException
-
unmarshal
public StreamDescriptor unmarshal(Reader reader)
-
-