public class XmlStreamReaderUtilitiesTest extends Object
XmlStreamReader.| Constructor and Description |
|---|
XmlStreamReaderUtilitiesTest() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateHttpEncoding(String httpContentType,
String bomEnc,
String xmlGuessEnc,
String xmlEnc,
boolean lenient,
String defaultEncoding) |
protected String |
calculateRawEncoding(String bomEnc,
String xmlGuessEnc,
String xmlEnc,
String defaultEncoding) |
void |
testAppXml()
Test for
XmlStreamReader.isAppXml(String). |
void |
testCalculateHttpEncoding()
Test calculate HTTP Encoding
|
void |
testCalculateHttpEncodingUtf32()
Test calculate HTTP Encoding
|
void |
testCalculateRawEncodingAdditonalUTF16()
Additional UTF-16 calculateRawEncoding() Test
|
void |
testCalculateRawEncodingAdditonalUTF32()
Additional UTF-32 calculateRawEncoding() Test
|
void |
testCalculateRawEncodingNoBOM()
No BOM calculateRawEncoding() Test
|
void |
testCalculateRawEncodingStandard()
BOM calculateRawEncoding() Test
|
void |
testCalculateRawEncodingStandardUtf32()
BOM calculateRawEncoding() Test
|
void |
testContentTypeEncoding()
|
void |
testContentTypeMime()
|
void |
testTextXml()
Test for
XmlStreamReader.isTextXml(String). |
public XmlStreamReaderUtilitiesTest()
public void testContentTypeEncoding()
public void testContentTypeMime()
public void testAppXml()
XmlStreamReader.isAppXml(String).public void testTextXml()
XmlStreamReader.isTextXml(String).public void testCalculateRawEncodingNoBOM() throws IOException
IOExceptionpublic void testCalculateRawEncodingStandard() throws IOException
IOExceptionpublic void testCalculateRawEncodingStandardUtf32() throws IOException
IOExceptionpublic void testCalculateRawEncodingAdditonalUTF16() throws IOException
IOExceptionpublic void testCalculateRawEncodingAdditonalUTF32() throws IOException
IOExceptionprotected String calculateRawEncoding(String bomEnc, String xmlGuessEnc, String xmlEnc, String defaultEncoding) throws IOException
IOExceptionpublic void testCalculateHttpEncoding() throws IOException
IOExceptionpublic void testCalculateHttpEncodingUtf32() throws IOException
IOExceptionprotected String calculateHttpEncoding(String httpContentType, String bomEnc, String xmlGuessEnc, String xmlEnc, boolean lenient, String defaultEncoding) throws IOException
IOExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.