public class DoctypeReader
extends java.io.Reader
| Constructor and Description |
|---|
DoctypeReader(java.io.Reader originalSource,
java.lang.String doctypeName,
java.lang.String systemID)
Create a Reader whose XML content is provided by the originalSource with
the exception of the DOCTYPE which is provided by the doctypeName
and systemID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected java.lang.String |
getContent() |
int |
read()
Read DOCTYPE-replaced content from the wrapped Reader
|
int |
read(char[] cbuf,
int off,
int len)
Read DOCTYPE-replaced content from the wrapped Reader
|
java.lang.String |
replaceDoctype(java.lang.StringBuffer withinContent,
java.lang.String doctypeName,
java.lang.String systemId)
Deprecated.
this method is only here for BWC, it is no longer
used by this class
|
public DoctypeReader(java.io.Reader originalSource,
java.lang.String doctypeName,
java.lang.String systemID)
originalSource - doctypeName - systemID - protected java.lang.String getContent()
throws java.io.IOException
java.io.IOException - if thrown while reading from the original sourcepublic java.lang.String replaceDoctype(java.lang.StringBuffer withinContent,
java.lang.String doctypeName,
java.lang.String systemId)
withinContent - doctypeName - systemId - public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readercbuf - off - len - java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException