|
BEA Systems, Inc. | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectweblogic.apache.xerces.dom.DOMInputSourceImpl
This Class DOMInputSourceImpl represents a single input source for an XML entity.
This Class allows an application to encapsulate information about an input source in a single object, which may include a public identifier, a system identifier, a byte stream (possibly with a specified encoding), and/or a character stream.
The exact definitions of a byte stream and a character stream are binding dependent.
There are two places that the application will deliver this input
source to the parser: as the argument to the parse method,
or as the return value of the DOMEntityResolver.resolveEntity
method.
The DOMBuilder will use the DOMInputSource
object to determine how to read XML input. If there is a character stream
available, the parser will read that stream directly; if not, the parser
will use a byte stream, if available; if neither a character stream nor a
byte stream is available, the parser will attempt to open a URI
connection to the resource identified by the system identifier.
An DOMInputSource object belongs to the application: the
parser shall never modify it in any way (it may modify a copy if
necessary). Eventhough all attributes in this interface are writable the
DOM implementation is expected to never mutate a DOMInputSource.
See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
| Field Summary | |
protected String |
fBaseSystemId
Deprecated. |
protected InputStream |
fByteStream
Deprecated. |
protected Reader |
fCharStream
Deprecated. |
protected String |
fData
Deprecated. |
protected String |
fEncoding
Deprecated. |
protected String |
fPublicId
Deprecated. |
protected String |
fSystemId
Deprecated. |
| Constructor Summary | |
DOMInputSourceImpl()
Deprecated. Default Constructor, constructs an input source |
|
DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId)
Deprecated. Constructs an input source from just the public and system identifiers, leaving resolution of the entity and opening of the input stream up to the caller. |
|
DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
InputStream byteStream,
String encoding)
Deprecated. Constructs an input source from a byte stream. |
|
DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
Reader charStream,
String encoding)
Deprecated. Constructs an input source from a character stream. |
|
DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
String data,
String encoding)
Deprecated. Constructs an input source from a String. |
|
| Method Summary | |
String |
getBaseURI()
Deprecated. The base URI to be used (see section 5.1.4 in ) for resolving relative URIs to absolute URIs. |
InputStream |
getByteStream()
Deprecated. An attribute of a language-binding dependent type that represents a stream of bytes. |
Reader |
getCharacterStream()
Deprecated. An attribute of a language-binding dependent type that represents a stream of 16-bit units. |
String |
getEncoding()
Deprecated. The character encoding, if known. |
String |
getPublicId()
Deprecated. The public identifier for this input source. |
String |
getStringData()
Deprecated. A string attribute that represents a sequence of 16 bit units (utf-16 encoded characters). |
String |
getSystemId()
Deprecated. The system identifier, a URI reference , for this input source. |
void |
setBaseURI(String baseURI)
Deprecated. The base URI to be used (see section 5.1.4 in ) for resolving relative URIs to absolute URIs. |
void |
setByteStream(InputStream byteStream)
Deprecated. An attribute of a language-binding dependent type that represents a stream of bytes. |
void |
setCharacterStream(Reader characterStream)
Deprecated. An attribute of a language-binding dependent type that represents a stream of 16-bit units. |
void |
setEncoding(String encoding)
Deprecated. The character encoding, if known. |
void |
setPublicId(String publicId)
Deprecated. The public identifier for this input source. |
void |
setStringData(String stringData)
Deprecated. A string attribute that represents a sequence of 16 bit units (utf-16 encoded characters). |
void |
setSystemId(String systemId)
Deprecated. The system identifier, a URI reference , for this input source. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String fBaseSystemId
protected InputStream fByteStream
protected Reader fCharStream
protected String fData
protected String fEncoding
protected String fPublicId
protected String fSystemId
| Constructor Detail |
public DOMInputSourceImpl()
public DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId)
public DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
InputStream byteStream,
String encoding)
public DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
Reader charStream,
String encoding)
public DOMInputSourceImpl(String publicId,
String systemId,
String baseSystemId,
String data,
String encoding)
| Method Detail |
public String getBaseURI()
getBaseURI in interface DOMInputSourcepublic InputStream getByteStream()
getByteStream in interface DOMInputSourcepublic Reader getCharacterStream()
getCharacterStream in interface DOMInputSourcepublic String getEncoding()
getEncoding in interface DOMInputSourcepublic String getPublicId()
getPublicId in interface DOMInputSourcepublic String getStringData()
getStringData in interface DOMInputSourcepublic String getSystemId()
getSystemId in interface DOMInputSourcepublic void setBaseURI(String baseURI)
setBaseURI in interface DOMInputSourcepublic void setByteStream(InputStream byteStream)
setByteStream in interface DOMInputSourcepublic void setCharacterStream(Reader characterStream)
setCharacterStream in interface DOMInputSourcepublic void setEncoding(String encoding)
setEncoding in interface DOMInputSourcepublic void setPublicId(String publicId)
setPublicId in interface DOMInputSourcepublic void setStringData(String stringData)
setStringData in interface DOMInputSourcepublic void setSystemId(String systemId)
setSystemId in interface DOMInputSource
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||