/** * Parses a message string and returns the corresponding Message object. * * @throws HL7Exception if the message is not correctly formatted. * @throws EncodingNotSupportedException if the message encoded is not supported by this parser. */ protected Message doParse(String message, String version) throws HL7Exception { return getAppropriateParser(message).doParse(message, version); }
/** * Parses a message string and returns the corresponding Message object. * * @throws HL7Exception if the message is not correctly formatted. * @throws EncodingNotSupportedException if the message encoded is not supported by this parser. */ protected Message doParse(String message, String version) throws HL7Exception { return getAppropriateParser(message).doParse(message, version); }
Message result = doParse(message, version); assertMessageValidates(result);
Message result = doParse(message, version); assertMessageValidates(result);