org.ag.sheriffbot
Class FilelistDumpSearcher.FilelistHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.ag.sheriffbot.FilelistDumpSearcher.FilelistHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
FilelistDumpSearcher

private class FilelistDumpSearcher.FilelistHandler
extends org.xml.sax.helpers.DefaultHandler


Field Summary
(package private) static int ANY
           
private  java.lang.String currentIP
           
private  java.lang.String currentUser
           
(package private) static int DIR
           
(package private)  java.util.Vector<java.lang.String> dirs
           
(package private) static int FILE
           
private  java.lang.String hubname
           
private  int level
           
private  boolean phpSerialize
           
private  java.util.Vector<java.lang.String> results
           
private  boolean showTTH
           
private  long size
           
private  java.lang.String srfor
           
private  int type
           
(package private) static int UNKNOWN
           
(package private) static int USER
           
 
Constructor Summary
FilelistDumpSearcher.FilelistHandler(java.lang.String Srfor, int Type, long Size, boolean ShowTTH, boolean PhpSerialize, java.lang.String Hubname, java.util.Vector<java.lang.String> res)
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String lname, java.lang.String qname)
           
 java.util.Vector<java.lang.String> getParsedData()
           
private  java.lang.String getPwd(java.util.Vector<java.lang.String> dirs)
           
private  java.lang.String serializeEntity(int index, java.lang.String s)
           
 void startElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes attrs)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

static final int USER
See Also:
Constant Field Values

FILE

static final int FILE
See Also:
Constant Field Values

DIR

static final int DIR
See Also:
Constant Field Values

ANY

static final int ANY
See Also:
Constant Field Values

UNKNOWN

static final int UNKNOWN
See Also:
Constant Field Values

results

private java.util.Vector<java.lang.String> results

dirs

java.util.Vector<java.lang.String> dirs

srfor

private java.lang.String srfor

type

private int type

level

private int level

size

private long size

showTTH

private boolean showTTH

phpSerialize

private boolean phpSerialize

hubname

private java.lang.String hubname

currentUser

private java.lang.String currentUser

currentIP

private java.lang.String currentIP
Constructor Detail

FilelistDumpSearcher.FilelistHandler

public FilelistDumpSearcher.FilelistHandler(java.lang.String Srfor,
                                            int Type,
                                            long Size,
                                            boolean ShowTTH,
                                            boolean PhpSerialize,
                                            java.lang.String Hubname,
                                            java.util.Vector<java.lang.String> res)
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String lname,
                         java.lang.String qname,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String lname,
                       java.lang.String qname)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

getPwd

private java.lang.String getPwd(java.util.Vector<java.lang.String> dirs)

serializeEntity

private java.lang.String serializeEntity(int index,
                                         java.lang.String s)

getParsedData

public java.util.Vector<java.lang.String> getParsedData()