01: /*
02: * $Id: Entity.java,v 1.3 2004/07/08 08:03:04 yuvalo Exp $
03: *
04: * (C) Copyright 2002-2004 by Yuval Oren. All rights reserved.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package com.bluecast.xml;
20:
21: import java.io.*;
22: import java.net.*;
23: import com.bluecast.util.*;
24: import org.xml.sax.*;
25:
26: public interface Entity {
27:
28: public boolean isOpen();
29:
30: public void open() throws IOException, SAXException,
31: RecursionException;
32:
33: public void close() throws IOException;
34:
35: public String getPublicID();
36:
37: public String getSystemID();
38:
39: public boolean isStandalone();
40:
41: public void setStandalone(boolean standalone);
42:
43: public boolean isInternal();
44:
45: public boolean isParsed();
46:
47: // These apply only to external entities
48: public String getDeclaredEncoding();
49:
50: public boolean isStandaloneDeclared();
51:
52: public String getXMLVersion();
53:
54: public Reader getReader();
55:
56: public String stringValue();
57:
58: public char[] charArrayValue();
59: }
|