PageBoxLib
Class AuditHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byPageBoxLib.AuditHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

class AuditHandler
extends org.xml.sax.helpers.DefaultHandler

SAX handler for audit.xml.

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 8
Author:
Alexis Grandemange

Field Summary
(package private)  java.lang.String arch
          Archive whose entries must be returned
private  java.lang.StringBuffer data
          Element data
(package private)  java.lang.StringBuffer entries
          Buffer where selected entries are stored
(package private)  java.lang.String msg
          Current message
(package private)  java.lang.String source
          Current source
(package private)  java.lang.String time
          Current time
 
Constructor Summary
(package private) AuditHandler(java.lang.String arch)
          Constructor.
 
Method Summary
 void characters(char[] buf, int offset, int len)
          Method called to handle characters in elements.
 void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName)
          Method called at the end of an element.
(package private)  java.lang.String getAudit()
           
 void startElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName, org.xml.sax.Attributes attrs)
          Method called at the beginning of an element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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

arch

java.lang.String arch
Archive whose entries must be returned


entries

java.lang.StringBuffer entries
Buffer where selected entries are stored


source

java.lang.String source
Current source


time

java.lang.String time
Current time


msg

java.lang.String msg
Current message


data

private java.lang.StringBuffer data
Element data

Constructor Detail

AuditHandler

AuditHandler(java.lang.String arch)
Constructor.

Parameters:
arch - archive whose entries must be returned
Method Detail

getAudit

java.lang.String getAudit()
Returns:
selected entries

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String sName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Method called at the beginning of an element.

Parameters:
namespaceURI - name space
sName - simple name
qName - qualified name
attrs - attributes
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String sName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Method called at the end of an element.

Parameters:
namespaceURI - name space
sName - simple name
qName - qualified name
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws org.xml.sax.SAXException
Method called to handle characters in elements. Fills data.

Parameters:
buf - char buffer
offset - first char offset in buf
len - number of chars
Throws:
org.xml.sax.SAXException