public class DoctypeInputStream extends InputStream
| Constructor and Description |
|---|
DoctypeInputStream(InputStream originalSource,
String encoding,
String doctypeName,
String systemID)
Create an InputStream 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(String encoding) |
int |
read()
Read DOCTYPE-replaced content from the wrapped InputStream
|
available, mark, markSupported, read, read, reset, skippublic DoctypeInputStream(InputStream originalSource, String encoding, String doctypeName, String systemID)
originalSource - doctypeName - systemID - protected String getContent(String encoding) throws IOException
IOException - if thrown while reading from the original sourcepublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2001–2017 XMLUnit. All rights reserved.