| java.lang.Object java.io.Reader org.apache.wicket.util.io.XmlReader
XmlReader | final public class XmlReader extends Reader (Code) | | This is a simple XmlReader. Its only purpose is to read the xml decl string
from the input and apply proper character encoding to all subsequent
characters. The xml decl string itself is removed from the output.
author: Juergen Donnerstag |
Method Summary | |
public void | close() | public String | getEncoding() Return the encoding used while reading the markup file. | public String | getXmlDeclaration() Return the XML declaration string, in case if found in the markup. | public void | init() Reads and parses markup from a resource such as file. | public int | read(char[] buf, int from, int to) | public String | toString() |
XmlReader | public XmlReader(InputStream inputStream, String defaultEncoding) throws IOException(Code) | | Construct.
Parameters: inputStream - The InputStream to read the xml data from Parameters: defaultEncoding - Default character encoding to use when not specified in XML declaration, specify null to use JVM default throws: IOException - In case something went wrong while reading the data |
getEncoding | public String getEncoding()(Code) | | Return the encoding used while reading the markup file.
if null, then JVM default |
getXmlDeclaration | public String getXmlDeclaration()(Code) | | Return the XML declaration string, in case if found in the markup.
Null, if not found. |
toString | public String toString()(Code) | | The markup to be parsed |
|
|