com.ibatis.db.sqlmap.upgrade
Class DocTypeReader
java.lang.Object
java.io.Reader
com.ibatis.db.sqlmap.upgrade.DocTypeReader
- public class DocTypeReader
- extends java.io.Reader
This class strips the doctype from an XML stream
because java.xml.transform can't disable validation
and/or loading of the DTD in a standard way, which
causes problems for those running without a network.
Line terminators are converted to a \n
Field Summary |
private java.lang.String |
docType
|
private java.io.Reader |
reader
|
Fields inherited from class java.io.Reader |
lock |
Method Summary |
void |
close()
|
java.lang.String |
getDocType()
|
int |
read(char[] cbuf,
int off,
int len)
|
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 |
reader
private java.io.Reader reader
docType
private java.lang.String docType
DocTypeReader
public DocTypeReader(java.io.Reader in)
throws java.io.IOException
getDocType
public java.lang.String getDocType()
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException