public ControlBlockHandler getControlBlockHandler(String segCode) throws SAXException { if(segCode.equals("UNH")) { return new UNHHandler(unhSegment, untSegment, hierarchyChangeListener); } else if(segCode.equals("UNG")) { return new UNGHandler(ungSegment, uneSegment); } else if(segCode.equals("UNA")) { return new UNAHandler(); } else if(segCode.equals("UNB")) { return new UNBHandler(unbSegment, unzSegment, toCharsetMapping); } else if(segCode.charAt(0) == 'U') { return new GenericHandler(); } throw new SAXException("Unknown/Unexpected UN/EDIFACT control block segment code '" + segCode + "'."); }
public ControlBlockHandler getControlBlockHandler(String segCode) throws SAXException { if(segCode.equals("UNH")) { return new UNHHandler(unhSegment, untSegment, hierarchyChangeListener); } else if(segCode.equals("UNG")) { return new UNGHandler(ungSegment, uneSegment); } else if(segCode.equals("UNA")) { return new UNAHandler(); } else if(segCode.equals("UNB")) { return new UNBHandler(unbSegment, unzSegment, toCharsetMapping); } else if(segCode.charAt(0) == 'U') { return new GenericHandler(); } throw new SAXException("Unknown/Unexpected UN/EDIFACT control block segment code '" + segCode + "'."); }
public ControlBlockHandler getControlBlockHandler(String segCode) throws SAXException { if(segCode.equals("UNH")) { return new UNHHandler(unhSegment, untSegment, hierarchyChangeListener); } else if(segCode.equals("UNG")) { return new UNGHandler(ungSegment, uneSegment); } else if(segCode.equals("UNA")) { return new UNAHandler(); } else if(segCode.equals("UNB")) { return new UNBHandler(unbSegment, unzSegment, toCharsetMapping); } else if(segCode.charAt(0) == 'U') { return new GenericHandler(); } throw new SAXException("Unknown/Unexpected UN/EDIFACT control block segment code '" + segCode + "'."); }
public ControlBlockHandler getControlBlockHandler(String segCode) throws SAXException { if(segCode.equals("UNH")) { return new UNHHandler(unhSegment, untSegment, hierarchyChangeListener); } else if(segCode.equals("UNG")) { return new UNGHandler(ungSegment, uneSegment); } else if(segCode.equals("UNA")) { return new UNAHandler(); } else if(segCode.equals("UNB")) { return new UNBHandler(unbSegment, unzSegment, toCharsetMapping); } else if(segCode.charAt(0) == 'U') { return new GenericHandler(); } throw new SAXException("Unknown/Unexpected UN/EDIFACT control block segment code '" + segCode + "'."); }