railo.commons.io.res.type.s3
Class BucketFactory
java.lang.Object
org.xml.sax.helpers.DefaultHandler
railo.commons.io.res.type.s3.S3Factory
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.
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
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
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