org.progeeks.util.xml
Class XmlSignatureReader

java.lang.Object
  extended by org.progeeks.util.xml.XmlReader
      extended by org.progeeks.util.xml.XmlSignatureReader

public class XmlSignatureReader
extends XmlReader

Reads the first parts of an XML file to pull out tag signatures. This can be used for identifying different types of XML files.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Nested Class Summary
 
Nested classes/interfaces inherited from class org.progeeks.util.xml.XmlReader
XmlReader.XmlHandler
 
Constructor Summary
XmlSignatureReader()
           
 
Method Summary
 java.lang.String getSignature(int depth, java.lang.String separator, java.io.Reader in)
          Reads in some depth of the XML to build a type signature in the form of tag + separator + tag depending on the specified nesting level.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.progeeks.util.xml.XmlReader
addTagText, createXmlException, createXmlException, endTag, getAttributesAsMap, getCurrentObject, getDocumentLocator, getIgnoreTagCase, getLocation, getPreviousObject, getRootObject, getStackSize, getTagReader, readObject, readXml, readXml, readXml, registerHandler, replaceCurrentObject, reset, resolveEntity, setDefaultHandler, setIgnoreTagCase, startTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSignatureReader

public XmlSignatureReader()
Method Detail

getSignature

public java.lang.String getSignature(int depth,
                                     java.lang.String separator,
                                     java.io.Reader in)
Reads in some depth of the XML to build a type signature in the form of tag + separator + tag depending on the specified nesting level.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2003 Paul Speed. All Rights Reserved.