public void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer) throws SAXException { controlSegmentParser.startElement(controlSegment, true); controlSegmentParser.mapFields(segmentReader.getCurrentSegmentFields(), controlSegment); controlSegmentParser.endElement(controlSegment, true); // And clear the buffer... we're finished with this data... if(clearSegmentBuffer) { segmentReader.getSegmentBuffer().setLength(0); } }
public void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer) throws SAXException { controlSegmentParser.startElement(controlSegment, true); controlSegmentParser.mapFields(segmentReader.getCurrentSegmentFields(), controlSegment); controlSegmentParser.endElement(controlSegment, true); // And clear the buffer... we're finished with this data... if(clearSegmentBuffer) { segmentReader.getSegmentBuffer().setLength(0); } }
public void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer) throws SAXException { controlSegmentParser.startElement(controlSegment, true); controlSegmentParser.mapFields(segmentReader.getCurrentSegmentFields(), controlSegment); controlSegmentParser.endElement(controlSegment, true); // And clear the buffer... we're finished with this data... if(clearSegmentBuffer) { segmentReader.getSegmentBuffer().setLength(0); } }
public void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer) throws SAXException { controlSegmentParser.startElement(controlSegment, true); controlSegmentParser.mapFields(segmentReader.getCurrentSegmentFields(), controlSegment); controlSegmentParser.endElement(controlSegment, true); // And clear the buffer... we're finished with this data... if(clearSegmentBuffer) { segmentReader.getSegmentBuffer().setLength(0); } }
/** * Map a single segment based on the current set of segment fields read from input and the segment mapping * config that these fields should map to. * @param currentSegmentFields Current set of segment fields read from input. * @param expectedSegment The segment mapping config that the currentSegmentFields should map to. * @throws IOException Error reading an EDI segment from the input stream. This will happen as the segment * reader tries to move to the next segment after performing this mapping. * @throws SAXException EDI processing exception. */ private void mapSegment(String[] currentSegmentFields, Segment expectedSegment) throws IOException, SAXException { startElement(expectedSegment, true); mapFields(currentSegmentFields, expectedSegment); if(segmentReader.moveToNextSegment()) { mapSegments(expectedSegment.getSegments()); } endElement(expectedSegment, true); }
/** * Map a single segment based on the current set of segment fields read from input and the segment mapping * config that these fields should map to. * @param currentSegmentFields Current set of segment fields read from input. * @param expectedSegment The segment mapping config that the currentSegmentFields should map to. * @throws IOException Error reading an EDI segment from the input stream. This will happen as the segment * reader tries to move to the next segment after performing this mapping. * @throws SAXException EDI processing exception. */ private void mapSegment(String[] currentSegmentFields, Segment expectedSegment) throws IOException, SAXException { startElement(expectedSegment, true); mapFields(currentSegmentFields, expectedSegment); if(segmentReader.moveToNextSegment()) { mapSegments(expectedSegment.getSegments()); } endElement(expectedSegment, true); }
/** * Map a single segment based on the current set of segment fields read from input and the segment mapping * config that these fields should map to. * @param currentSegmentFields Current set of segment fields read from input. * @param expectedSegment The segment mapping config that the currentSegmentFields should map to. * @throws IOException Error reading an EDI segment from the input stream. This will happen as the segment * reader tries to move to the next segment after performing this mapping. * @throws SAXException EDI processing exception. */ private void mapSegment(String[] currentSegmentFields, Segment expectedSegment) throws IOException, SAXException { startElement(expectedSegment, true); mapFields(currentSegmentFields, expectedSegment); if(segmentReader.moveToNextSegment()) { mapSegments(expectedSegment.getSegments()); } endElement(expectedSegment, true); }
/** * Map a single segment based on the current set of segment fields read from input and the segment mapping * config that these fields should map to. * @param currentSegmentFields Current set of segment fields read from input. * @param expectedSegment The segment mapping config that the currentSegmentFields should map to. * @throws IOException Error reading an EDI segment from the input stream. This will happen as the segment * reader tries to move to the next segment after performing this mapping. * @throws SAXException EDI processing exception. */ private void mapSegment(String[] currentSegmentFields, Segment expectedSegment) throws IOException, SAXException { startElement(expectedSegment, true); mapFields(currentSegmentFields, expectedSegment); if(segmentReader.moveToNextSegment()) { mapSegments(expectedSegment.getSegments()); } endElement(expectedSegment, true); }