01: /*
02: * Copyright (C) 2004, 2005 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 07. March 2004 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.io;
13:
14: import java.io.InputStream;
15: import java.io.OutputStream;
16: import java.io.Reader;
17: import java.io.Writer;
18:
19: /**
20: * Provides implementation of XML parsers and writers to XStream.
21: *
22: * @author Joe Walnes
23: * @author James Strachan
24: */
25: public interface HierarchicalStreamDriver {
26:
27: HierarchicalStreamReader createReader(Reader in);
28:
29: /** @since 1.1.3 */
30: HierarchicalStreamReader createReader(InputStream in);
31:
32: HierarchicalStreamWriter createWriter(Writer out);
33:
34: /** @since 1.1.3 */
35: HierarchicalStreamWriter createWriter(OutputStream out);
36:
37: }
|