/** * Parses the string to an {@link UnmodifiableMessage} using the specific HapiContext. When accessing structures or types of the * returned message, they will be unmodifiable as well. The returned message caches the original message string, * which is returned when calling {@link Message#encode()} or {@link Message#toString()}. * * @param context HapiContext * @param s message string * @return unmodifiable message wrapper * @throws HL7Exception if parsing fails */ public static Message unmodifiableMessage(HapiContext context, String s) throws HL7Exception { Message msg = context.getGenericParser().parse(s); return new UnmodifiableMessage(msg, s); }
public Message generateACK(AcknowledgmentCode theAcknowlegementCode, HL7Exception theException) throws HL7Exception, IOException { return getDelegate().generateACK(theAcknowlegementCode, theException); }
public Message generateACK() throws HL7Exception, IOException { return getDelegate().generateACK(); }
public Parser getParser() { return getDelegate().getParser(); }
public Message generateACK(String theAcknowlegementCode, HL7Exception theException) throws HL7Exception, IOException { return getDelegate().generateACK(theAcknowlegementCode, theException); }
public String encode() throws HL7Exception { return originalMessage != null ? originalMessage : getDelegate().encode(); }
public String getVersion() { return getDelegate().getVersion(); }
public Message generateACK(String theAcknowlegementCode, HL7Exception theException) throws HL7Exception, IOException { return getDelegate().generateACK(theAcknowlegementCode, theException); }
/** * Parses the string to an {@link UnmodifiableMessage} using the specific HapiContext. When accessing structures or types of the * returned message, they will be unmodifiable as well. The returned message caches the original message string, * which is returned when calling {@link Message#encode()} or {@link Message#toString()}. * * @param context HapiContext * @param s message string * @return unmodifiable message wrapper * @throws HL7Exception if parsing fails */ public static Message unmodifiableMessage(HapiContext context, String s) throws HL7Exception { Message msg = context.getGenericParser().parse(s); return new UnmodifiableMessage(msg, s); }
public Message generateACK(AcknowledgmentCode theAcknowlegementCode, HL7Exception theException) throws HL7Exception, IOException { return getDelegate().generateACK(theAcknowlegementCode, theException); }
public Message generateACK() throws HL7Exception, IOException { return getDelegate().generateACK(); }
public Parser getParser() { return getDelegate().getParser(); }
public String printStructure() throws HL7Exception { return getDelegate().printStructure(); } }
public String getEncodingCharactersValue() throws HL7Exception { return getDelegate().getEncodingCharactersValue(); }
public Character getFieldSeparatorValue() throws HL7Exception { return getDelegate().getFieldSeparatorValue(); }
public String getEncodingCharactersValue() throws HL7Exception { return getDelegate().getEncodingCharactersValue(); }
public String encode() throws HL7Exception { return originalMessage != null ? originalMessage : getDelegate().encode(); }
public String getVersion() { return getDelegate().getVersion(); }
public Character getFieldSeparatorValue() throws HL7Exception { return getDelegate().getFieldSeparatorValue(); }
public String printStructure() throws HL7Exception { return getDelegate().printStructure(); } }