private RecordMetaData buildRecordMetaData(String recordName, String[] fieldNames) { return buildRecordMetaData(recordName, Arrays.asList(fieldNames)); }
private RecordMetaData buildRecordMetaData(String recordName, String[] fieldNames) { return buildRecordMetaData(recordName, Arrays.asList(fieldNames)); }
public RecordMetaData buildMultiRecordMetaData(String recordDef) { Matcher matcher = MULTI_RECORD_PATTERN.matcher(recordDef); if (matcher.matches()) { return buildRecordMetaData(matcher.group(1), matcher.group(2).split(",")); } return null; }
public RecordMetaData buildMultiRecordMetaData(String recordDef) { Matcher matcher = MULTI_RECORD_PATTERN.matcher(recordDef); if (matcher.matches()) { return buildRecordMetaData(matcher.group(1), matcher.group(2).split(",")); } return null; }
recordMetaData = buildRecordMetaData(recordElementName, recordDefs.get(0).split(",")); return;
recordMetaData = buildRecordMetaData(recordElementName, recordDefs.get(0).split(",")); return;
/** * {@inheritDoc} */ public void initialize() throws IOException { int skipLines = factory.getSkipLines(); // Move past the lines to be skipped ... while (lineNumber < skipLines) { _nextRecordFieldValues(); } // If the fields are defined in the message... read the next record if (factory.fieldsInMessage() || factory.validateHeader()) { List<String> fields = _nextRecordFieldValues(); if (factory.validateHeader()) { validateHeader(fields); } if (factory.fieldsInMessage()) { // In message field definitions do not support variable field definitions... just one record type supported... inMessageRecordMetaData = VariableFieldRecordMetaData.buildRecordMetaData(factory.getRecordElementName(), fields); } } }
/** * {@inheritDoc} */ public void initialize() throws IOException { int skipLines = factory.getSkipLines(); // Move past the lines to be skipped ... while (lineNumber < skipLines) { _nextRecordFieldValues(); } // If the fields are defined in the message... read the next record if (factory.fieldsInMessage() || factory.validateHeader()) { List<String> fields = _nextRecordFieldValues(); if (factory.validateHeader()) { validateHeader(fields); } if (factory.fieldsInMessage()) { // In message field definitions do not support variable field definitions... just one record type supported... inMessageRecordMetaData = VariableFieldRecordMetaData.buildRecordMetaData(factory.getRecordElementName(), fields); } } }