public final class EncodingDetector extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertEr7Encoded(String theMessage)
Throws an exception if the message is not ER7 encoded
|
static void |
assertXmlEncoded(String theMessage)
Throws an exception if the message is not XML encoded
|
static boolean |
isEr7Encoded(String theMessage)
Returns true if the message is ER7 (pipe-and-hat) encoded
|
static boolean |
isXmlEncoded(String theMessage)
Returns true if the message is XML encoded.
|
public static void assertEr7Encoded(String theMessage)
theMessage
- message to be examinedRuntimeException
- if message is not ER7-encodedpublic static boolean isEr7Encoded(String theMessage)
theMessage
- message to be examinedpublic static void assertXmlEncoded(String theMessage)
theMessage
- message to be examinedRuntimeException
- if message is not XML-encodedpublic static boolean isXmlEncoded(String theMessage)
theMessage
- message to be examinedCopyright © 2001–2017 University Health Network. All rights reserved.