|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
org.custommonkey.xmlunit.DoctypeReader
public class DoctypeReader
Adapts the marked-up content in a source Reader to specify that it
conforms to a different DTD.
Combines Reader semantics with the ability to specify a target doctype
for a character stream containing XML markup.
Used by Validator class to wrap a Reader when performing validation of a
document against a DTD.
Examples and more at xmlunit.sourceforge.net
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
DoctypeReader(java.io.Reader originalSource,
java.lang.String doctypeName,
java.lang.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. |
Method Summary | |
---|---|
void |
close()
|
protected java.lang.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 |
java.lang.String |
replaceDoctype(java.lang.StringBuffer withinContent,
java.lang.String doctypeName,
java.lang.String systemId)
Deprecated. this method is only here for BWC, it is no longer used by this class |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoctypeReader(java.io.Reader originalSource, java.lang.String doctypeName, java.lang.String systemID)
originalSource
- doctypeName
- systemID
- Method Detail |
---|
protected java.lang.String getContent() throws java.io.IOException
java.io.IOException
- if thrown while reading from the original sourcepublic java.lang.String replaceDoctype(java.lang.StringBuffer withinContent, java.lang.String doctypeName, java.lang.String systemId)
withinContent
- doctypeName
- systemId
-
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
cbuf
- off
- len
-
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |