org.sfm.csv.impl
| Constructor and Description |
|---|
CsvMapperImpl(Instantiator<DelayedCellSetter<T,?>[],T> instantiator,
DelayedCellSetterFactory<T,?>[] delayedCellSetters,
CellSetter<T>[] setters,
CsvColumnKey[] keys,
CsvColumnKey[] joinKeys,
ParsingContextFactory parsingContextFactory,
FieldMapperErrorHandler<CsvColumnKey> fieldErrorHandler,
RowHandlerErrorHandler rowHandlerErrorHandlers) |
| Modifier and Type | Method and Description |
|---|---|
<H extends RowHandler<? super T>> |
forEach(CsvReader reader,
H handle)
Will map each row of the content of reader to an object of type T and will pass that object to the handle via the
RowHandler.handler(T t) call back. |
<H extends RowHandler<? super T>> |
forEach(CsvReader reader,
H handle,
int limit)
Will map each row of the content of reader, starting at rowStart and ending before rowEnd, to an object of type T and will pass that object to the handle via the
RowHandler.handler(T t) call back. |
<H extends RowHandler<? super T>> |
forEach(Reader reader,
H handler)
Will map each row of the content of reader to an object of type T and will pass that object to the handle via the
RowHandler.handler(T t) call back. |
<H extends RowHandler<? super T>> |
forEach(Reader reader,
H handler,
int skip)
Will map each row of the content of reader, starting at rowStart, to an object of type T and will pass that object to the handle via the
RowHandler.handler(T t) call back. |
<H extends RowHandler<? super T>> |
forEach(Reader reader,
H handler,
int skip,
int limit)
Will map each row of the content of reader, starting at rowStart and ending before rowEnd, to an object of type T and will pass that object to the handle via the
RowHandler.handler(T t) call back. |
Iterator<T> |
iterate(CsvReader csvReader)
Deprecated.
|
Iterator<T> |
iterate(Reader reader)
Deprecated.
|
Iterator<T> |
iterate(Reader reader,
int skip)
Deprecated.
|
Iterator<T> |
iterator(CsvReader csvReader)
Will return an iterator on the reader that will return a mapped object for each row.
|
Iterator<T> |
iterator(Reader reader)
Will return an iterator on the reader that will return a mapped object for each row.
|
Iterator<T> |
iterator(Reader reader,
int skip)
Will return an iterator on the reader that will return a mapped object for each row.
|
protected CsvMapperCellConsumer |
newCellConsumer(RowHandler<? super T> handler) |
protected CsvMapperCellConsumer<T> |
newCellConsumer(RowHandler<? super T> handler,
BreakDetector parentBreakDetector) |
String |
toString() |
public CsvMapperImpl(Instantiator<DelayedCellSetter<T,?>[],T> instantiator, DelayedCellSetterFactory<T,?>[] delayedCellSetters, CellSetter<T>[] setters, CsvColumnKey[] keys, CsvColumnKey[] joinKeys, ParsingContextFactory parsingContextFactory, FieldMapperErrorHandler<CsvColumnKey> fieldErrorHandler, RowHandlerErrorHandler rowHandlerErrorHandlers)
public final <H extends RowHandler<? super T>> H forEach(Reader reader, H handler) throws IOException, MappingException
CsvMapperRowHandler.handler(T t) call back.forEach in interface CsvMapper<T>reader - the readerhandler - the callback instanceIOException - if an io error occursMappingException - if an mapping error occurspublic <H extends RowHandler<? super T>> H forEach(CsvReader reader, H handle) throws IOException, MappingException
CsvMapperRowHandler.handler(T t) call back.forEach in interface CsvMapper<T>reader - the readerhandle - the callback instanceIOException - if an io error occursMappingException - if an mapping error occurspublic final <H extends RowHandler<? super T>> H forEach(Reader reader, H handler, int skip) throws IOException, MappingException
CsvMapperRowHandler.handler(T t) call back.forEach in interface CsvMapper<T>reader - the readerhandler - the callback instanceskip - the number of row to skipIOException - if an io error occursMappingException - if an mapping error occurspublic final <H extends RowHandler<? super T>> H forEach(Reader reader, H handler, int skip, int limit) throws IOException, MappingException
CsvMapperRowHandler.handler(T t) call back.forEach in interface CsvMapper<T>reader - the readerhandler - the callback instanceskip - the number of row to skiplimit - the number of row to processIOException - if an io error occursMappingException - if an mapping error occurspublic final <H extends RowHandler<? super T>> H forEach(CsvReader reader, H handle, int limit) throws IOException, MappingException
CsvMapperRowHandler.handler(T t) call back.forEach in interface CsvMapper<T>reader - the readerhandle - the callback instancelimit - the number of row to processIOException - if an io error occursMappingException - if an mapping error occurs@Deprecated public Iterator<T> iterate(Reader reader) throws IOException
iterate in interface CsvMapper<T>IOException@Deprecated public Iterator<T> iterate(CsvReader csvReader)
@Deprecated public Iterator<T> iterate(Reader reader, int skip) throws IOException
iterate in interface CsvMapper<T>IOExceptionpublic Iterator<T> iterator(Reader reader) throws IOException
CsvMapperiterator in interface CsvMapper<T>reader - the readerIOExceptionpublic Iterator<T> iterator(CsvReader csvReader)
CsvMapperpublic Iterator<T> iterator(Reader reader, int skip) throws IOException
CsvMapperiterator in interface CsvMapper<T>reader - the readerskip - the number of row to skipIOExceptionprotected CsvMapperCellConsumer newCellConsumer(RowHandler<? super T> handler)
protected CsvMapperCellConsumer<T> newCellConsumer(RowHandler<? super T> handler, BreakDetector parentBreakDetector)
Copyright © 2015. All rights reserved.