Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

de.zeigermann.xml.* (12)de.zeigermann.xml.simpleImporter.* (7)

Package Samples:

de.zeigermann.xml.simpleImporter: XML utility and helper classes  
de.zeigermann.xml

Classes:

SimpleImporter: Simple and fast importer for XML configuration or import files. It is based on SAX and can be considered an extension to it. This means it is callback oriented and does not build an internal data structure like the DOM. While SAX is simple, fast, and memory friendly it might be a bit too rudimentary for most tasks. SimpleImporter adds more high level means for importing XML while preserving the SAX's benefits. As with SAX you register a callback handler ( SimpleImportHandler ) that is called upon events. Consider the following example implementation of a SimpleImportHandler : public class DemoHandler ...
XMLOutputStreamWriter: Adds XML export functionality to the underlying output stream. Formatting and encoding is done as straight forward as possible. Everything you know better than this class must be done by you, e.g. you will have to tell XMLOutputStreamWriter where you wish to have newlines.In effect, no unexpected so called intelligent behavior is to be feared. Another effect is high speed. Caution : Do not forget to call FilterWriter.flush() > FilterWriter.flush() 55 at the end of your exporting process as otherwise no data might be written. Warning : When using two byte encoding (e.g. UTF-16) underlying OutputStream ...
XMLWriter: java.io.FilterWriter adding formatted and encoded XML export functionality to the underlying writer. Formatting and encoding is done as straight forward as possible. Everything you know better than this class must be done by you, e.g. you will have to tell XMLWriter where you wish to have newlines.In effect, no unexpected so called intelligent behavior is to be feared. Another effect is high speed. A simple example: Suppose your XMLWriter object is xmlWriter. The following sequence of code   xmlWriter.writeStartTag("<root>");   xmlWriter.writeStartTag("<next1>", false); ...
XMLStringWriter: This is a convenience class for writing XML to a string. As no IOExceptions will occur this class catches them for you doing nothing. Call toString() 55 to finally get your string. As constructor for XMLWriter already needs writer call create() 55 to get your objects instead of consructor.
SimplePath: Rudimentary representation of a path to an XML element. Two paths match in two cases: If they are really equal in terms of the equals(java.lang.Object) 55 method. If the path to match to is relative, i.e. it has no leading '/' and it is the suffix of the matching path. For example /root/tag matches /root/tag and /root/tag matches tag .
DefaultSimpleImportHandler: Empty implementation for callback interface SimpleImportHandler for SimpleImporter . For lazy people - like me - who do not like to write empty method bodies.
XMLWriterTest: Test cases for XMLWriter , XMLOutputStreamWriter , and XMLEncode .
SimpleImporterException: Tells us that there is something wrong with SimpleImporter . Needs to be a runtime excpetion to get it thrown out of SAX callbacks. In any case if this exception is thrown it is really fatal.
XMLEncode: Collection of XML encoding/decoding helpers. This is all about the special characters & and <, and for attributes " and '. These must be encoded/decoded from/to XML.
SimpleImportHandler: Callback interface for SimpleImporter .
ConversionHelpers: Collection of some simple conversion and fallback methods for convenience.
SimpleImportTest: Try out importer a little bit.

Home | Contact Us | Privacy Policy | Terms of Service