01: /*
02: * Created on Oct 15, 2004
03: */
04: package uk.org.ponder.saxalizer;
05:
06: import java.io.InputStream;
07: import java.io.OutputStream;
08:
09: /**
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: *
12: */
13: public interface XMLProvider {
14: public void writeXML(Object towrite, OutputStream os);
15:
16: public Object readXML(Object classorobject, InputStream is);
17:
18: public String toString(Object towrite);
19:
20: public String toString(Object towrite, boolean compact);
21:
22: public Object fromString(String toread);
23: }
|