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, skip
public 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 InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2001–2017 XMLUnit. All rights reserved.