org.sonatype.gshell.util.marshal
Interface Marshaller<T>

All Known Implementing Classes:
MarshallerSupport

public interface Marshaller<T>

Marshaller interface.

Since:
2.3
Author:
Jason Dillon

Method Summary
 String marshal(T root)
           
 void marshal(T root, File file)
           
 void marshal(T root, OutputStream output)
           
 void marshal(T root, Writer writer)
           
 T unmarshal(File file)
           
 T unmarshal(InputStream input)
           
 T unmarshal(Reader reader)
           
 T unmarshal(String xml)
           
 T unmarshal(URL url)
           
 

Method Detail

marshal

void marshal(T root,
             OutputStream output)

marshal

void marshal(T root,
             Writer writer)

marshal

String marshal(T root)

marshal

void marshal(T root,
             File file)
             throws IOException
Throws:
IOException

unmarshal

T unmarshal(InputStream input)

unmarshal

T unmarshal(Reader reader)

unmarshal

T unmarshal(String xml)

unmarshal

T unmarshal(URL url)
            throws IOException
Throws:
IOException

unmarshal

T unmarshal(File file)
            throws IOException
Throws:
IOException


Copyright © 2008-2011 Sonatype. All Rights Reserved.