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 Reader
cbuf
- off
- len
- IOException
public int read() throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2001–2017 XMLUnit. All rights reserved.