|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.component.transformation.flatfile.reader.BaseFlatFileReader
public abstract class BaseFlatFileReader
Abstract base class for FlatFile implementations of XMLReader
Subclasses of this class will be capable of reading various types of flat
files as if they were XML files.
| Field Summary | |
|---|---|
protected Attributes |
attributes
Attributes |
protected ContentHandler |
contentHandler
Handler to the content |
protected String |
namespaceURI
The URI for the namespace |
| Constructor Summary | |
|---|---|
BaseFlatFileReader(String rootElementName)
Constructor |
|
| Method Summary | |
|---|---|
ContentHandler |
getContentHandler()
Accessor method for ContentHandler |
DTDHandler |
getDTDHandler()
Accessor method for DTDHandler |
EntityResolver |
getEntityResolver()
Accessor method for EntityResolver |
ErrorHandler |
getErrorHandler()
Accessor method for ErrorHandler |
boolean |
getFeature(String name)
Accessor method for features. |
Object |
getProperty(String name)
Accessor for named properties |
void |
parse(InputSource inputSource)
Parses the InputSource creating an empty document Delegates to subclasses to parse the InputSource in type specific manner |
void |
parse(String systemId)
Unimplemented method from XMLReader |
protected abstract void |
parseInputSource(InputSource inputSource)
Type specific method implemented by subclasses |
void |
setContentHandler(ContentHandler handler)
Setter method for ContentHandler |
void |
setDTDHandler(DTDHandler handler)
Setter method for DTDHandler |
void |
setEntityResolver(EntityResolver resolver)
Setter method for EntityResolver |
void |
setErrorHandler(ErrorHandler handler)
Setter method for ErrorHandler |
void |
setFeature(String name,
boolean value)
Unimplemented method from XMLReader |
void |
setNamespaceURI(String namespaceURI)
Setter for namespaceURI |
void |
setProperty(String name,
Object value)
Unimplemented method from XMLReader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ContentHandler contentHandler
protected String namespaceURI
protected Attributes attributes
| Constructor Detail |
|---|
public BaseFlatFileReader(String rootElementName)
rootElementName - - The name of the root element| Method Detail |
|---|
public ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReader
public boolean getFeature(String name)
throws SAXNotSupportedException
getFeature in interface XMLReadername -
SAXNotSupportedExceptionpublic Object getProperty(String name)
getProperty in interface XMLReadername -
public void parse(String systemId)
XMLReader
parse in interface XMLReadersystemId - public void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderhandler - public void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderhandler - public void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderresolver - public void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderhandler -
public void setFeature(String name,
boolean value)
throws SAXNotSupportedException
XMLReader
setFeature in interface XMLReadername - value -
SAXNotSupportedException
public void setProperty(String name,
Object value)
XMLReader
setProperty in interface XMLReadername - value - public void setNamespaceURI(String namespaceURI)
namespaceURI -
public void parse(InputSource inputSource)
throws IOException,
SAXException
parse in interface XMLReaderinputSource -
IOException
SAXException
protected abstract void parseInputSource(InputSource inputSource)
throws IOException,
SAXException
inputSource -
IOException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||