此内容没有您所选择的语言版本。
12.17. Implementing a Source Reader
You can implement a source reader for your custom data format which immediately opens all Smooks capabilities to that data format such as Java Binding, Templating, Persistence, Validation, Splitting, Routing etc. The only Smooks requirement is that the Reader implements the standard
org.xml.sax.XMLReader
interface from the Java JDK. However, if you want to be able to configure the Reader implementation, it needs to implement the org.milyn.xml.SmooksXMLReader
interface. org.milyn.xml.SmooksXMLReader
is an extension of org.xml.sax.XMLReader
. You can easily use an existing org.xml.sax.XMLReader
implementation, or implement a new one.
Refer to http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/XMLReader.html for more details.