public class DoctypeReader extends Reader
| Constructor and Description |
|---|
DoctypeReader(Reader originalSource,
String doctypeName,
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 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
|
public DoctypeReader(Reader originalSource, String doctypeName, String systemID)
originalSource - doctypeName - systemID - protected String getContent() throws IOException
IOException - if thrown while reading from the original sourcepublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class Readercbuf - off - len - IOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2001–2020 XMLUnit. All rights reserved.