dominputimpl.java

来自「JAVA 所有包」· Java 代码 · 共 389 行 · 第 1/2 页

JAVA
389
字号
     * stream of bytes.     * <br>The parser will ignore this if there is also a character stream     * specified, but it will use a byte stream in preference to opening a     * URI connection itself.     * <br>If the application knows the character encoding of the byte stream,     * it should set the encoding property. Setting the encoding in this way     * will override any encoding specified in the XML declaration itself.     */    public InputStream getByteStream(){	return fByteStream;    }    /**     * An attribute of a language-binding dependent type that represents a     * stream of bytes.     * <br>The parser will ignore this if there is also a character stream     * specified, but it will use a byte stream in preference to opening a     * URI connection itself.     * <br>If the application knows the character encoding of the byte stream,     * it should set the encoding property. Setting the encoding in this way     * will override any encoding specified in the XML declaration itself.     */     public void setByteStream(InputStream byteStream){ 	fByteStream = byteStream;     }    /**     *  An attribute of a language-binding dependent type that represents a     * stream of 16-bit units. Application must encode the stream using     * UTF-16 (defined in  and Amendment 1 of ).     * <br>If a character stream is specified, the parser will ignore any byte     * stream and will not attempt to open a URI connection to the system     * identifier.     */    public Reader getCharacterStream(){	return fCharStream;    }    /**     *  An attribute of a language-binding dependent type that represents a     * stream of 16-bit units. Application must encode the stream using     * UTF-16 (defined in  and Amendment 1 of ).     * <br>If a character stream is specified, the parser will ignore any byte     * stream and will not attempt to open a URI connection to the system     * identifier.     */     public void setCharacterStream(Reader characterStream){	fCharStream = characterStream;     }    /**     * A string attribute that represents a sequence of 16 bit units (utf-16     * encoded characters).     * <br>If string data is available in the input source, the parser will     * ignore the character stream and the byte stream and will not attempt     * to open a URI connection to the system identifier.     */    public String getStringData(){	return fData;    }   /**     * A string attribute that represents a sequence of 16 bit units (utf-16     * encoded characters).     * <br>If string data is available in the input source, the parser will     * ignore the character stream and the byte stream and will not attempt     * to open a URI connection to the system identifier.     */     public void setStringData(String stringData){		fData = stringData;     }    /**     *  The character encoding, if known. The encoding must be a string     * acceptable for an XML encoding declaration ( section 4.3.3 "Character     * Encoding in Entities").     * <br>This attribute has no effect when the application provides a     * character stream. For other sources of input, an encoding specified     * by means of this attribute will override any encoding specified in     * the XML claration or the Text Declaration, or an encoding obtained     * from a higher level protocol, such as HTTP .     */    public String getEncoding(){	return fEncoding;    }    /**     *  The character encoding, if known. The encoding must be a string     * acceptable for an XML encoding declaration ( section 4.3.3 "Character     * Encoding in Entities").     * <br>This attribute has no effect when the application provides a     * character stream. For other sources of input, an encoding specified     * by means of this attribute will override any encoding specified in     * the XML claration or the Text Declaration, or an encoding obtained     * from a higher level protocol, such as HTTP .     */    public void setEncoding(String encoding){	fEncoding = encoding;    }    /**     * The public identifier for this input source. The public identifier is     * always optional: if the application writer includes one, it will be     * provided as part of the location information.     */    public String getPublicId(){	return fPublicId;    }    /**     * The public identifier for this input source. The public identifier is     * always optional: if the application writer includes one, it will be     * provided as part of the location information.     */    public void setPublicId(String publicId){	fPublicId = publicId;    }    /**     * The system identifier, a URI reference , for this input source. The     * system identifier is optional if there is a byte stream or a     * character stream, but it is still useful to provide one, since the     * application can use it to resolve relative URIs and can include it in     * error messages and warnings (the parser will attempt to fetch the     * ressource identifier by the URI reference only if there is no byte     * stream or character stream specified).     * <br>If the application knows the character encoding of the object     * pointed to by the system identifier, it can register the encoding by     * setting the encoding attribute.     * <br>If the system ID is a relative URI reference (see section 5 in ),     * the behavior is implementation dependent.     */    public String getSystemId(){	return fSystemId;    }    /**     * The system identifier, a URI reference , for this input source. The     * system identifier is optional if there is a byte stream or a     * character stream, but it is still useful to provide one, since the     * application can use it to resolve relative URIs and can include it in     * error messages and warnings (the parser will attempt to fetch the     * ressource identifier by the URI reference only if there is no byte     * stream or character stream specified).     * <br>If the application knows the character encoding of the object     * pointed to by the system identifier, it can register the encoding by     * setting the encoding attribute.     * <br>If the system ID is a relative URI reference (see section 5 in ),     * the behavior is implementation dependent.     */    public void setSystemId(String systemId){	fSystemId = systemId;    }    /**     *  The base URI to be used (see section 5.1.4 in ) for resolving relative     * URIs to absolute URIs. If the baseURI is itself a relative URI, the     * behavior is implementation dependent.     */    public String getBaseURI(){	return fBaseSystemId;    }    /**     *  The base URI to be used (see section 5.1.4 in ) for resolving relative     * URIs to absolute URIs. If the baseURI is itself a relative URI, the     * behavior is implementation dependent.     */    public void setBaseURI(String baseURI){	fBaseSystemId = baseURI;    }    /**      *  If set to true, assume that the input is certified (see section 2.13      * in [<a href='http://www.w3.org/TR/2002/CR-xml11-20021015/'>XML 1.1</a>]) when      * parsing [<a href='http://www.w3.org/TR/2002/CR-xml11-20021015/'>XML 1.1</a>].      */    public boolean getCertifiedText(){      return fCertifiedText;    }    /**      *  If set to true, assume that the input is certified (see section 2.13      * in [<a href='http://www.w3.org/TR/2002/CR-xml11-20021015/'>XML 1.1</a>]) when      * parsing [<a href='http://www.w3.org/TR/2002/CR-xml11-20021015/'>XML 1.1</a>].      */    public void setCertifiedText(boolean certifiedText){      fCertifiedText = certifiedText;    }}// class DOMInputImpl

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?