|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.routine.AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
com.univocity.parsers.fixed.FixedWidthRoutines
public class FixedWidthRoutines
A collection of common routines involving the processing of Fixed-Width data.
| Constructor Summary | |
|---|---|
FixedWidthRoutines()
Creates a new instance of the Fixed-width routine class without any predefined parsing/writing configuration. |
|
FixedWidthRoutines(FixedWidthParserSettings parserSettings)
Creates a new instance of the Fixed-width routine class. |
|
FixedWidthRoutines(FixedWidthParserSettings parserSettings,
FixedWidthWriterSettings writerSettings)
Creates a new instance of the Fixed-width routine class. |
|
FixedWidthRoutines(FixedWidthWriterSettings writerSettings)
Creates a new instance of the Fixed-width routine class. |
|
| Method Summary | |
|---|---|
protected void |
adjustColumnLengths(String[] headers,
int[] lengths)
Allows writers of any given format to adjust its settings to take into account column headers and lengths prior to writing data in any routine. |
protected FixedWidthParserSettings |
createDefaultParserSettings()
Creates a default parser settings configuration |
protected FixedWidthWriterSettings |
createDefaultWriterSettings()
Creates a default writer settings configuration |
protected FixedWidthParser |
createParser(FixedWidthParserSettings parserSettings)
Creates a new parser implementation using the given parser configuration |
protected FixedWidthWriter |
createWriter(Writer output,
FixedWidthWriterSettings writerSettings)
Creates a new writer implementation using the given writer configuration |
| Methods inherited from class com.univocity.parsers.common.routine.AbstractRoutines |
|---|
getParserSettings, getWriterSettings, iterate, iterate, iterate, iterate, iterate, iterate, iterate, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAndWrite, setParserSettings, setWriterSettings, toString, write, write, write, write, write, write, write, writeAll, writeAll, writeAll, writeAll, writeAll, writeAll, writeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FixedWidthRoutines()
public FixedWidthRoutines(FixedWidthParserSettings parserSettings)
parserSettings - configuration to use for Fixed-width parsingpublic FixedWidthRoutines(FixedWidthWriterSettings writerSettings)
writerSettings - configuration to use for Fixed-width writing
public FixedWidthRoutines(FixedWidthParserSettings parserSettings,
FixedWidthWriterSettings writerSettings)
parserSettings - configuration to use for Fixed-width parsingwriterSettings - configuration to use for Fixed-width writing| Method Detail |
|---|
protected void adjustColumnLengths(String[] headers,
int[] lengths)
AbstractRoutines
adjustColumnLengths in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>headers - headers to be writtenlengths - the corresponding lengths of each headerprotected FixedWidthParser createParser(FixedWidthParserSettings parserSettings)
AbstractRoutines
createParser in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>parserSettings - the configuration for new parser
protected FixedWidthWriter createWriter(Writer output,
FixedWidthWriterSettings writerSettings)
AbstractRoutines
createWriter in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>output - target output of the routine.writerSettings - the configuration for new writer
protected FixedWidthParserSettings createDefaultParserSettings()
AbstractRoutines
createDefaultParserSettings in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>protected FixedWidthWriterSettings createDefaultWriterSettings()
AbstractRoutines
createDefaultWriterSettings in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||