/** * {@inheritDoc } */ @Override public String doEncode(Type type, EncodingCharacters encodingCharacters) throws HL7Exception { return primaryParser.doEncode(type, encodingCharacters); }
/** * {@inheritDoc } */ @Override public String doEncode(Type type, EncodingCharacters encodingCharacters) throws HL7Exception { return primaryParser.doEncode(type, encodingCharacters); }
/** * Formats a Message object into an HL7 message string using this parser's default encoding. * * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) */ protected String doEncode(Message source) throws HL7Exception { return primaryParser.doEncode(source); }
/** * {@inheritDoc } */ @Override public String doEncode(Segment structure, EncodingCharacters encodingCharacters) throws HL7Exception { return primaryParser.doEncode(structure, encodingCharacters); }
/** * {@inheritDoc } */ @Override public String doEncode(Segment structure, EncodingCharacters encodingCharacters) throws HL7Exception { return primaryParser.doEncode(structure, encodingCharacters); }
/** * Formats a Message object into an HL7 message string using this parser's default encoding. * * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) */ protected String doEncode(Message source) throws HL7Exception { return primaryParser.doEncode(source); }
/** * Formats a Message object into an HL7 message string using the given encoding. * * @param source a Message object from which to construct an encoded message string * @param encoding the name of the HL7 encoding to use (eg "XML"; most implementations support * only one encoding) * @return the encoded message * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) * @throws EncodingNotSupportedException if the requested encoding is not supported by this * parser. */ public String encode(Message source, String encoding) throws HL7Exception { assertMessageValidates(source); String result = doEncode(source, encoding); assertMessageValidates(result, encoding, source.getVersion()); return result; }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ @Override public String encode() throws HL7Exception { Parser p = getMessage().getParser(); return p.doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * Formats a Message object into an HL7 message string using the given encoding. * * @param source a Message object from which to construct an encoded message string * @param encoding the name of the HL7 encoding to use (eg "XML"; most implementations support * only one encoding) * @return the encoded message * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) * @throws EncodingNotSupportedException if the requested encoding is not supported by this * parser. */ public String encode(Message source, String encoding) throws HL7Exception { assertMessageValidates(source); String result = doEncode(source, encoding); assertMessageValidates(result, encoding, source.getVersion()); return result; }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ @Override public String encode() throws HL7Exception { Parser p = getMessage().getParser(); return p.doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public String encode() throws HL7Exception { return getMessage().getParser().doEncode(this, EncodingCharacters.getInstance(getMessage())); }
/** * Formats a Message object into an HL7 message string using this parser's default encoding. * * @param source a Message object from which to construct an encoded message string * @return the encoded message * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) */ public String encode(Message source) throws HL7Exception { assertMessageValidates(source); String result = doEncode(source); assertMessageValidates(result, getDefaultEncoding(), source.getVersion()); return result; }
/** * Formats a Message object into an HL7 message string using this parser's default encoding. * * @param source a Message object from which to construct an encoded message string * @return the encoded message * @throws HL7Exception if the data fields in the message do not permit encoding (e.g. required * fields are null) */ public String encode(Message source) throws HL7Exception { assertMessageValidates(source); String result = doEncode(source); assertMessageValidates(result, getDefaultEncoding(), source.getVersion()); return result; }