|
||||||||||
| 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
org.ikasan.framework.component.transformation.flatfile.reader.BaseStringHandlingFlatFileReader
public abstract class BaseStringHandlingFlatFileReader
Abstract base class for all flat file readers that must first convert the
incoming InputSource to a String for handling
| Field Summary | |
|---|---|
protected boolean |
trimTrailingWhitespace
Flag specifying whether trailing white space should be trimmed from each element value |
| Fields inherited from class org.ikasan.framework.component.transformation.flatfile.reader.BaseFlatFileReader |
|---|
attributes, contentHandler, namespaceURI |
| Constructor Summary | |
|---|---|
BaseStringHandlingFlatFileReader(String rootElementName,
boolean trimTrailingWhitespace)
Constructor |
|
| Method Summary | |
|---|---|
protected String |
format(String fieldValue)
Format the field value, in this case trim whitespace and line carriages |
protected boolean |
isEmpty(String fieldValue)
Determines if a field's value is empty |
void |
parseInputSource(InputSource source)
Type specific method implemented by subclasses |
protected abstract void |
parseString(String string)
Parse the string, is overridden by child classes |
protected void |
reportField(BaseFieldDefinition fieldDefinition,
String rawFieldContent)
|
| Methods inherited from class org.ikasan.framework.component.transformation.flatfile.reader.BaseFlatFileReader |
|---|
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setNamespaceURI, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean trimTrailingWhitespace
| Constructor Detail |
|---|
public BaseStringHandlingFlatFileReader(String rootElementName,
boolean trimTrailingWhitespace)
rootElementName - trimTrailingWhitespace - | Method Detail |
|---|
public void parseInputSource(InputSource source)
throws IOException,
SAXException
BaseFlatFileReader
parseInputSource in class BaseFlatFileReaderIOException
SAXException
protected abstract void parseString(String string)
throws IOException,
SAXException
string -
IOException
SAXExceptionprotected String format(String fieldValue)
fieldValue -
protected boolean isEmpty(String fieldValue)
fieldValue -
protected void reportField(BaseFieldDefinition fieldDefinition,
String rawFieldContent)
throws SAXException
fieldDefinition - rawFieldContent -
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||