KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > dom4j > io > DocumentBuilder


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DocumentBuilder.java,v 1.1 2003/04/25 08:11:51 per_nyfelt Exp $
8
package org.ozoneDB.xml.dom4j.io;
9
10 import org.dom4j.Document;
11 import org.dom4j.DocumentException;
12 import org.ozoneDB.OzoneRemote;
13
14 import java.io.IOException JavaDoc;
15 import java.io.InputStream JavaDoc;
16 import java.io.Reader JavaDoc;
17 import java.net.SocketAddress JavaDoc;
18
19 /**
20  * $Id: DocumentBuilder.java,v 1.1 2003/04/25 08:11:51 per_nyfelt Exp $
21  */

22 public interface DocumentBuilder extends OzoneRemote {
23
24     public static final String JavaDoc OBJECT_NAME = "DocumentBuilder";
25
26     public Document parse(String JavaDoc text) throws DocumentException;
27
28     public Document parse(String JavaDoc text, String JavaDoc objectName) throws DocumentException;
29
30     public Document parse(Reader JavaDoc reader) throws DocumentException;
31
32     public Document parse(InputStream JavaDoc in) throws DocumentException;
33
34     /**
35      * This will probably not work but something to this effect needs to exist
36      * in order to send the stream content through the pipe over to the server
37      */

38     public SocketAddress JavaDoc prepareStreamParsing() throws IOException JavaDoc;
39
40     public Document getResult();
41 }
42
43
Popular Tags