Examples of skipHeader()


Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (row == 1 && headerFactory != null) {
                // marshal the first row as a header if the models match
                Set<String> modelClassNames = model.keySet();
                // only use the header factory if the row is the header
                if (headerFactory.supportsModel(modelClassNames)) {
                    if (factory.skipHeader())  {
                        LOG.info("Skipping marshal of header row; 'skipHeader=true'");
                        continue;
                    } else {
                        result = headerFactory.unbind(model);
                    }   
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (scanner.hasNextLine() && factory.hasHeader()) {
               
                // Read the line (should not trim as its fixed length)
                String line = getNextNonEmptyLine(scanner, count);
               
                if (!factory.skipHeader()) {
                    Map<String, Object> headerObjMap = createModel(headerFactory, line, count.intValue());
                    exchange.getOut().setHeader(CAMEL_BINDY_FIXED_LENGTH_HEADER, headerObjMap);
                }
            }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (row == 1 && headerFactory != null) {
                // marshal the first row as a header if the models match
                Set<String> modelClassNames = model.keySet();
                // only use the header factory if the row is the header
                if (headerFactory.supportsModel(modelClassNames)) {
                    if (factory.skipHeader())  {
                        LOG.info("Skipping marshal of header row; 'skipHeader=true'");
                        continue;
                    } else {
                        result = headerFactory.unbind(model);
                    }   
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (scanner.hasNextLine() && factory.hasHeader()) {
               
                // Read the line (should not trim as its fixed length)
                String line = getNextNonEmptyLine(scanner, count);
               
                if (!factory.skipHeader()) {
                    Map<String, Object> headerObjMap = createModel(headerFactory, line, count.intValue());
                    exchange.getOut().setHeader(CAMEL_BINDY_FIXED_LENGTH_HEADER, headerObjMap);
                }
            }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (row == 1 && headerFactory != null) {
                // marshal the first row as a header if the models match
                Set<String> modelClassNames = model.keySet();
                // only use the header factory if the row is the header
                if (headerFactory.supportsModel(modelClassNames)) {
                    if (factory.skipHeader())  {
                        LOG.info("Skipping marshal of header row; 'skipHeader=true'");
                        continue;
                    } else {
                        result = headerFactory.unbind(model);
                    }   
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (scanner.hasNextLine() && factory.hasHeader()) {
               
                // Read the line (should not trim as its fixed length)
                String line = getNextNonEmptyLine(scanner, count);
               
                if (!factory.skipHeader()) {
                    Map<String, Object> headerObjMap = createModel(headerFactory, line, count.intValue());
                    exchange.getOut().setHeader(CAMEL_BINDY_FIXED_LENGTH_HEADER, headerObjMap);
                }
            }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (row == 1 && headerFactory != null) {
                // marshal the first row as a header if the models match
                Set<String> modelClassNames = model.keySet();
                // only use the header factory if the row is the header
                if (headerFactory.supportsModel(modelClassNames)) {
                    if (factory.skipHeader())  {
                        LOG.info("Skipping marshal of header row; 'skipHeader=true'");
                        continue;
                    } else {
                        result = headerFactory.unbind(model);
                    }   
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.skipHeader()

            if (scanner.hasNextLine() && factory.hasHeader()) {
               
                // Read the line (should not trim as its fixed length)
                String line = getNextNonEmptyLine(scanner, count);
               
                if (!factory.skipHeader()) {
                    Map<String, Object> headerObjMap = createModel(headerFactory, line, count.intValue());
                    exchange.getOut().setHeader(CAMEL_BINDY_FIXED_LENGTH_HEADER, headerObjMap);
                }
            }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.FixedLengthRecord.skipHeader()

                // Get hasHeader parameter
                hasHeader = record.hasHeader();
                LOG.debug("Has Header: {}", hasHeader);
               
                // Get skipHeader parameter
                skipHeader = record.skipHeader();
                LOG.debug("Skip Header: {}", skipHeader);

                // Get hasFooter parameter
                hasFooter = record.hasFooter();
                LOG.debug("Has Footer: {}", hasFooter);
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.FixedLengthRecord.skipHeader()

                // Get hasHeader parameter
                hasHeader = record.hasHeader();
                LOG.debug("Has Header: {}", hasHeader);
               
                // Get skipHeader parameter
                skipHeader = record.skipHeader();
                LOG.debug("Skip Header: {}", skipHeader);

                // Get hasFooter parameter
                hasFooter = record.hasFooter();
                LOG.debug("Has Footer: {}", hasFooter);
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.