com.northconcepts.datapipeline.fixedwidth
Class FixedWidthReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.AbstractReader
com.northconcepts.datapipeline.core.TextReader
com.northconcepts.datapipeline.fixedwidth.FixedWidthReader
public class FixedWidthReader
- extends TextReader
Obtains records from a fixed width stream.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, toString |
FixedWidthReader
public FixedWidthReader(File file)
FixedWidthReader
public FixedWidthReader(Reader reader)
getFillChar
public char getFillChar()
setFillChar
public FixedWidthReader setFillChar(char fillChar)
addFields
public FixedWidthReader addFields(int... width)
addField
public FixedWidthReader addField(String name,
int width)
skipField
public FixedWidthReader skipField(int width)
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class TextReader
open
public void open()
throws DataException
- Description copied from class:
DataEndpoint
- Makes this endpoint ready for reading or writing.
- Overrides:
open in class TextReader
- Throws:
DataException
fillRecord
protected boolean fillRecord(Record record)
throws Throwable
- Specified by:
fillRecord in class AbstractReader
- Throws:
Throwable
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.