/** * Move to the next EDI segment. * <p/> * Simply reads and buffers the next EDI segment. Clears the current contents of * the buffer before reading. * @return True if a "next" segment exists, otherwise false. * @throws IOException Error reading from EDI stream. */ public boolean moveToNextSegment() throws IOException { return moveToNextSegment(true); }
/** * Map a list of EDI Segments to SAX events. * <p/> * Reads the segments from the input stream and maps them based on the supplied list of expected segments. * @param expectedSegments The list of expected segments. * @throws IOException Error reading an EDI segment from the input stream. * @throws SAXException EDI processing exception. */ private void mapSegments(List<SegmentGroup> expectedSegments) throws IOException, SAXException { mapSegments(expectedSegments, null); }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. * @param cause Exception cause. */ public EDIParseException(Edimap mappingModel, String message, Exception cause) { super(getMessagePrefix(mappingModel) + " " + message, cause); }
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); } }
private boolean ignoreEmptyNodes() { if (ignoreEmptyNodes == null) { ignoreEmptyNodes = getFeature(FEATURE_IGNORE_EMPTY_NODES); } return ignoreEmptyNodes; }
public Map<String, Boolean> getFeatures() { if (features == null) { initializeFeatures(); } return features; }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. * @param cause Exception cause. */ public EDIParseException(Edimap mappingModel, String message, Exception cause) { super(getMessagePrefix(mappingModel) + " " + message, cause); }
private boolean ignoreEmptyNodes() { if (ignoreEmptyNodes == null) { ignoreEmptyNodes = getFeature(FEATURE_IGNORE_EMPTY_NODES); } return ignoreEmptyNodes; }
/** * Move to the next EDI segment. * * Simply reads and buffers the next EDI segment. Clears the current contents of * the buffer before reading. * @return True if a "next" segment exists, otherwise false. * @throws IOException Error reading from EDI stream. */ public boolean moveToNextSegment() throws IOException { return moveToNextSegment(true); }
public Map<String, Boolean> getFeatures() { if (features == null) { initializeFeatures(); } return features; }
/** * Map a list of EDI Segments to SAX events. * <p/> * Reads the segments from the input stream and maps them based on the supplied list of expected segments. * @param expectedSegments The list of expected segments. * @throws IOException Error reading an EDI segment from the input stream. * @throws SAXException EDI processing exception. */ private void mapSegments(List<SegmentGroup> expectedSegments) throws IOException, SAXException { mapSegments(expectedSegments, null); }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. */ public EDIParseException(Edimap mappingModel, String message) { super(getMessagePrefix(mappingModel) + " " + message); }
private boolean ignoreEmptyNodes() { if (ignoreEmptyNodes == null) { ignoreEmptyNodes = getFeature(FEATURE_IGNORE_EMPTY_NODES); } return ignoreEmptyNodes; }
/** * Move to the next EDI segment. * <p/> * Simply reads and buffers the next EDI segment. Clears the current contents of * the buffer before reading. * @return True if a "next" segment exists, otherwise false. * @throws IOException Error reading from EDI stream. */ public boolean moveToNextSegment() throws IOException { return moveToNextSegment(true); }
public Map<String, Boolean> getFeatures() { if (features == null) { initializeFeatures(); } return features; }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. */ public EDIParseException(Edimap mappingModel, String message) { super(getMessagePrefix(mappingModel) + " " + message); }
private boolean ignoreEmptyNodes() { if (ignoreEmptyNodes == null) { ignoreEmptyNodes = getFeature(FEATURE_IGNORE_EMPTY_NODES); } return ignoreEmptyNodes; }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. * @param cause Exception cause. */ public EDIParseException(Edimap mappingModel, String message, Exception cause) { super(getMessagePrefix(mappingModel) + " " + message, cause); }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. */ public EDIParseException(Edimap mappingModel, String message) { super(getMessagePrefix(mappingModel) + " " + message); }
/** * Public constructor. * @param mappingModel The mapping model for the message on which the exception was encoutered. * @param message Exception message. */ public EDIParseException(Edimap mappingModel, String message) { super(getMessagePrefix(mappingModel) + " " + message); }