| Modifier and Type | Field and Description |
|---|---|
| private ColumnMapping | |
| private boolean | |
| private P | |
| private Writer | |
| private final String | |
| private W |
| Access | Constructor and Description |
|---|---|
| public | AbstractRoutines(String
description of the routines for a given format routineDescription)Creates a new instance of this routine class. |
| public | AbstractRoutines(String
description of the routines for a given format routineDescription, P configuration to use for parsing parserSettings)Creates a new instance of this routine class. |
| public | AbstractRoutines(String
description of the routines for a given format routineDescription, W configuration to use for writing writerSettings)Creates a new instance of this routine class. |
| public | AbstractRoutines(String
description of the routines for a given format routineDescription, P configuration to use for parsing parserSettings, W configuration to use for writing writerSettings)Creates a new instance of this routine class. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | adjustColumnLengths(String[]
headers to be written headers, int[] the corresponding lengths of each header 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. |
| private void | |
| protected abstract P | Returns: a new instance of a usable parser configuration.Creates a default parser settings configuration |
| protected abstract W | Returns: a new instance of a usable writer configuration.Creates a default writer settings configuration |
| protected abstract AbstractParser | Returns: a parser implementation configured according to the given settings object.the configuration for new parser parserSettings)Creates a new parser implementation using the given parser configuration |
| protected abstract AbstractWriter | Returns: a writer implementation configured according to the given settings object.target output of the routine. output, W the configuration for new writer writerSettings)Creates a new writer implementation using the given writer configuration |
| private RowProcessor | |
| public ColumnMapper | Returns: the column mapperReturns a mapper that allows users to manually define mappings from attributes/methods of a given class to columns to be parsed or written in routines that manipulate java beans. |
| public InputDimension | Returns: aInputDimension with information about the dimensions of the given input.the file to be parsed input)Calculates the dimensions of a file (row and column count). |
| public InputDimension | Returns: aInputDimension with information about the dimensions of the given input.the file to be parsed input, String encoding of the given file encoding)Calculates the dimensions of a file (row and column count). |
| public InputDimension | Returns: aInputDimension with information about the dimensions of the given input.the input to be parsed input)Calculates the dimensions of a given input (row and column count). |
| public InputDimension | Returns: aInputDimension with information about the dimensions of the given input.the input to be parsed input, String encoding of the given input encoding)Calculates the dimensions of a given input (row and column count). |
| public InputDimension | Returns: aInputDimension with information about the dimensions of the given input.the input to be parsed input)Calculates the dimensions of a given input (row and column count). |
| public boolean | Returns: flag indicating whether to call theclose() (or any other cleanup method)
after a routine executes.Returns a flag indicating whether resources used for writing should be kept open after being used by the routines available from this object, when applicable. |
| public final P | Returns: the parser configuration.Returns the parser configuration (if any) used by the routines of this utility class. |
| public final W | Returns: the writer configuration.Returns the writer configuration (if any) used by the routines of this utility class. |
| public < the type of java beans to be instantiated. T> IterableResult | |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final File the file to be parsed input, String encoding of the given file encoding)Iterates over a file to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final File the file to be parsed input, Charset encoding of the given file encoding)Iterates over a file to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input)Iterates over an input stream to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, String encoding of the given input stream encoding)Iterates over an input stream to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, Charset encoding of the given input stream encoding)Iterates over an input stream to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> IterableResult | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final Reader the input to be parsed input)Iterates over an input to produce instances of annotated java beans on demand. |
| public < the type of java beans to be instantiated. T> List | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final File the file to be parsed input, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses a file into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final File the file to be parsed input, String encoding of the given file encoding, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses a file into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final File the file to be parsed input, Charset encoding of the given file encoding, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses a file into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, String encoding of the given input stream encoding, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, Charset encoding of the given input stream encoding, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, Reader the input to be parsed input, int expected number of rows to be parsed from the input which will be converted into java beans.
Used to pre-allocate the size of the output expectedBeanCount)ListParses the input into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | |
| public < the type of java beans to be instantiated. T> List | Returns: anIterable that allows iterating over the input and producing instances of java beans on demand.the type of java beans to be instantiated. beanType, final File the file to be parsed input, String encoding of the given file encoding)Parses a file into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input)Parses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, String encoding of the given input stream encoding)Parses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | Returns: a list containing all java beans read from the input.the type of java beans to be instantiated. beanType, final InputStream the input stream to be parsed input, Charset encoding of the given input stream encoding)Parses an input stream into a list of annotated java beans |
| public < the type of java beans to be instantiated. T> List | |
| public final void | parseAndWrite(Reader
the input data to be parsed using the settings provided in input, Writer getParserSettings()the output into where the input data should be written, using the format provided in output)getWriterSettings()Reads all data from a given input and writes it to an output. |
| public void | setColumnMapper(ColumnMapper
the column mappings to use columnMapper)Copies the given column mappings over to this processor. |
| public void | setKeepResourcesOpen(boolean
flag indicating whether to call the keepResourcesOpen)close() (or any other cleanup method)
after a routine executes.Allows preventing resources used for writing from being closed after being used by the routines available from this object, when applicable. |
| public final void | setParserSettings(P
the parser configuration. parserSettings)Defines the parser configuration to be used by the routines of this utility class. |
| private void | |
| private void | |
| public final void | setWriterSettings(W
the parser configuration. writerSettings)Defines the writer configuration to be used by the routines of this utility class. |
| public String | |
| private void | |
| private void | |
| public final void | write(ResultSet
the rs, File java. whose contents should be read and written to a given outputthe output file that will store the data in the given output)java.
in the format specified by concrete implementations of this class.Dumps the content of a |
| public final void | write(ResultSet
the rs, File java. whose contents should be read and written to a given outputthe output file that will store the data in the given output, String java.
in the format specified by concrete implementations of this class.the output encoding of the file encoding)Dumps the content of a |
| public final void | write(ResultSet
the rs, File java. whose contents should be read and written to a given outputthe output file that will store the data in the given output, Charset java.
in the format specified by concrete implementations of this class.the output encoding of the file encoding)Dumps the content of a |
| public final void | write(ResultSet
the rs, OutputStream java. whose contents should be read and written to a given outputthe output stream that will store the data in the given output)java.
in the format specified by concrete implementations of this class.Dumps the content of a |
| public final void | write(ResultSet
the rs, OutputStream java. whose contents should be read and written to a given outputthe output file that will store the data in the given output, String java.
in the format specified by concrete implementations of this class.the output encoding of the output stream encoding)Dumps the content of a |
| public final void | write(ResultSet
the rs, OutputStream java. whose contents should be read and written to a given outputthe output file that will store the data in the given output, Charset java.
in the format specified by concrete implementations of this class.the output encoding of the output stream encoding)Dumps the content of a |
| public final void | write(ResultSet
the rs, Writer java. whose contents should be read and written to a given outputthe output that will store the data in the given output)java.
in the format specified by concrete implementations of this class.Dumps the content of a |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, File the output into which the given elements will be written output, String... headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, File the output into which the given elements will be written output, String the output encoding to use for writing encoding, String[] headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, File the output into which the given elements will be written output, Charset the output encoding to use for writing encoding, String... headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, OutputStream the output into which the given elements will be written output, String... headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, OutputStream the output into which the given elements will be written output, String the output encoding to use for writing encoding, String[] headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, OutputStream the output into which the given elements will be written output, Charset the output encoding to use for writing encoding, String... headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |
| public < the type of element in the given collection T> void | writeAll(Iterable<T>
the elements to write to the output elements, Class<T> the type of element in the given collection beanType, Writer the output into which the given elements will be written output, String... headers to use in the first row of the written result. headers)Writes a collection of annotated java beans to a given output. |