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 Repraesentation einer TLD ein und laedt 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 erhaelt.
 
Method Summary
 void doEndElement(String uri, String name, String qName)
           
 void doStartElement(String uri, String name, String qName, Attributes atts)
           
 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 erhaelt.

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)

doEndElement

public void doEndElement(String uri,
                         String name,
                         String qName)
                  throws SAXException
Specified by:
doEndElement in class S3Factory
Throws:
SAXException

getBuckets

public Bucket[] getBuckets()


Copyright © 2012 Railo