public class FixedWidthRoutines extends AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
getColumnMapper, getInputDimension, getInputDimension, getInputDimension, getInputDimension, getInputDimension, getKeepResourcesOpen, getParserSettings, getWriterSettings, iterate, iterate, iterate, iterate, iterate, iterate, iterate, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAll, parseAndWrite, setColumnMapper, setKeepResourcesOpen, setParserSettings, setWriterSettings, toString, write, write, write, write, write, write, write, writeAll, writeAll, writeAll, writeAll, writeAll, writeAll, writeAll
public FixedWidthRoutines()
public FixedWidthRoutines(FixedWidthParserSettings parserSettings)
parserSettings
- configuration to use for Fixed-width parsingpublic FixedWidthRoutines(FixedWidthWriterSettings writerSettings)
writerSettings
- configuration to use for Fixed-width writingpublic FixedWidthRoutines(FixedWidthParserSettings parserSettings, FixedWidthWriterSettings writerSettings)
parserSettings
- configuration to use for Fixed-width parsingwriterSettings
- configuration to use for Fixed-width writingprotected 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 parserprotected FixedWidthWriter createWriter(Writer output, FixedWidthWriterSettings writerSettings)
AbstractRoutines
createWriter
in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
output
- target output of the routine.writerSettings
- the configuration for new writerprotected FixedWidthParserSettings createDefaultParserSettings()
AbstractRoutines
createDefaultParserSettings
in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
protected FixedWidthWriterSettings createDefaultWriterSettings()
AbstractRoutines
createDefaultWriterSettings
in class AbstractRoutines<FixedWidthParserSettings,FixedWidthWriterSettings>
Copyright © 2022 Univocity Software Pty Ltd. All rights reserved.