Examples of FixedWidthConfiguration


Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     * @param fixedValueWidth
     *            the (fixed) width of values in the file.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     *            the line number of the column headers.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth,
            int headerLineNumber) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

public class FixedWidthConfigurationTest extends TestCase {

  public void testToString() throws Exception {
    assertEquals(
        "FixedWidthConfiguration[encoding=UTF8, fixedValueWidth=10, valueWidths=[], columnNameLineNumber=1, failOnInconsistentLineWidth=true]",
        new FixedWidthConfiguration(1, "UTF8", 10, true).toString());
  }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

        "FixedWidthConfiguration[encoding=UTF8, fixedValueWidth=10, valueWidths=[], columnNameLineNumber=1, failOnInconsistentLineWidth=true]",
        new FixedWidthConfiguration(1, "UTF8", 10, true).toString());
  }

  public void testEquals() throws Exception {
    FixedWidthConfiguration conf1 = new FixedWidthConfiguration(1, "UTF8",
        10, true);
    FixedWidthConfiguration conf2 = new FixedWidthConfiguration(1, "UTF8",
        10, true);
    assertEquals(conf1, conf2);

    FixedWidthConfiguration conf3 = new FixedWidthConfiguration(1, "UTF8",
        10, false);
    assertFalse(conf1.equals(conf3));
  }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     * @param fixedValueWidth
     *            the (fixed) width of values in the file.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     *            the line number of the column headers.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth,
            int headerLineNumber) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     * @param fixedValueWidth
     *            the (fixed) width of values in the file.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here

Examples of org.apache.metamodel.fixedwidth.FixedWidthConfiguration

     *            the line number of the column headers.
     * @return a DataContext object that matches the request
     */
    public static DataContext createFixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth,
            int headerLineNumber) {
        return createFixedWidthDataContext(file, new FixedWidthConfiguration(
                FixedWidthConfiguration.DEFAULT_COLUMN_NAME_LINE, fileEncoding, fixedValueWidth));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.