public enum HL7Charset extends Enum<HL7Charset>
| Enum Constant and Description |
|---|
ASCII |
BIG_5 |
CNS |
GB_1830_2000 |
ISO_8859_1 |
ISO_8859_2 |
ISO_8859_3 |
ISO_8859_4 |
ISO_8859_5 |
ISO_8859_6 |
ISO_8859_7 |
ISO_8859_8 |
ISO_8859_9 |
ISO_IR14 |
ISO_IR159 |
ISO_IR87 |
KS_X_1001 |
UNICODE |
UTF_16 |
UTF_32 |
UTF_8 |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharsetName(byte[] bytes,
String guessedCharsetName)
Returns the charset to be used for unmarshalling HL7 messages.
|
static String |
getCharsetName(ca.uhn.hl7v2.model.Message message,
org.apache.camel.Exchange exchange)
Returns the charset to be used for marshalling HL7 messages.
|
static HL7Charset |
getHL7Charset(String s)
Returns the HL7Charset that matches the parameter
|
String |
getHL7CharsetName() |
String |
getJavaCharsetName() |
static HL7Charset |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HL7Charset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HL7Charset ISO_8859_1
public static final HL7Charset ISO_8859_2
public static final HL7Charset ISO_8859_3
public static final HL7Charset ISO_8859_4
public static final HL7Charset ISO_8859_5
public static final HL7Charset ISO_8859_6
public static final HL7Charset ISO_8859_7
public static final HL7Charset ISO_8859_8
public static final HL7Charset ISO_8859_9
public static final HL7Charset ASCII
public static final HL7Charset BIG_5
public static final HL7Charset CNS
public static final HL7Charset GB_1830_2000
public static final HL7Charset ISO_IR14
public static final HL7Charset ISO_IR159
public static final HL7Charset ISO_IR87
public static final HL7Charset KS_X_1001
public static final HL7Charset UNICODE
public static final HL7Charset UTF_16
public static final HL7Charset UTF_32
public static final HL7Charset UTF_8
public static HL7Charset[] values()
for (HL7Charset c : HL7Charset.values()) System.out.println(c);
public static HL7Charset valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getHL7CharsetName()
public String getJavaCharsetName()
public static HL7Charset getHL7Charset(String s)
s - charset stringpublic static String getCharsetName(ca.uhn.hl7v2.model.Message message, org.apache.camel.Exchange exchange) throws ca.uhn.hl7v2.HL7Exception
message - HL7 messageexchange - Exchangeca.uhn.hl7v2.HL7Exceptionpublic static String getCharsetName(byte[] bytes, String guessedCharsetName) throws UnsupportedEncodingException, ca.uhn.hl7v2.HL7Exception
bytes - HL7 message as byte arrayguessedCharsetName - the temporary charset guessed to be able to read MSH-18UnsupportedEncodingExceptionca.uhn.hl7v2.HL7ExceptionHL7DataFormat.guessCharsetName(byte[], org.apache.camel.Exchange)Apache Camel