railo.commons.io.res.type.s3
Class BucketFactory

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by railo.commons.io.res.type.s3.S3Factory
          extended by railo.commons.io.res.type.s3.BucketFactory
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class BucketFactory
extends S3Factory

Die Klasse TagLibFactory liest die XML Repr�sentation einer TLD ein und l�dt diese in eine Objektstruktur. Sie tut dieses mithilfe eines Sax Parser. Die Klasse kann sowohl einzelne Files oder gar ganze Verzeichnisse von TLD laden.


Field Summary
 
Fields inherited from class railo.commons.io.res.type.s3.S3Factory
DEFAULT_SAX_PARSER
 
Constructor Summary
BucketFactory(InputStream in, S3 s3)
          Privater Konstruktor, der als Eingabe die TLD als File Objekt erh�lt.
 
Method Summary
 void doEndElement(String uri, String name, String qName)
          Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim auftreten eines End-Tag aufgerufen.
 void doStartElement(String uri, String name, String qName, Attributes atts)
          Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim Auftreten eines Start-Tag aufgerufen.
 Bucket[] getBuckets()
           
 
Methods inherited from class railo.commons.io.res.type.s3.S3Factory
characters, endElement, startElement
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketFactory

public BucketFactory(InputStream in,
                     S3 s3)
              throws IOException,
                     SAXException
Privater Konstruktor, der als Eingabe die TLD als File Objekt erh�lt.

Parameters:
saxParser - String Klassenpfad zum Sax Parser.
file - File Objekt auf die TLD.
Throws:
IOException
SAXException
Method Detail

doStartElement

public void doStartElement(String uri,
                           String name,
                           String qName,
                           Attributes atts)
Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim Auftreten eines Start-Tag aufgerufen.

See Also:
ContentHandler.startElement(String, String, String, Attributes)

doEndElement

public void doEndElement(String uri,
                         String name,
                         String qName)
                  throws SAXException
Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim auftreten eines End-Tag aufgerufen.

Specified by:
doEndElement in class S3Factory
Throws:
SAXException
See Also:
ContentHandler.endElement(String, String, String)

getBuckets

public Bucket[] getBuckets()


Copyright © 2012 Railo