public class DoctypeInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
DoctypeInputStream(java.io.InputStream originalSource,
java.lang.String encoding,
java.lang.String doctypeName,
java.lang.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 | Description |
|---|---|---|
void |
close() |
|
protected java.lang.String |
getContent(java.lang.String encoding) |
|
int |
read() |
Read DOCTYPE-replaced content from the wrapped InputStream
|
public DoctypeInputStream(java.io.InputStream originalSource,
java.lang.String encoding,
java.lang.String doctypeName,
java.lang.String systemID)
originalSource - doctypeName - systemID - protected java.lang.String getContent(java.lang.String encoding)
throws java.io.IOException
java.io.IOException - if thrown while reading from the original sourcepublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class java.io.InputStreamjava.io.IOException