public class StringEscapeUtilsTest extends Object
StringEscapeUtils.| Constructor and Description |
|---|
StringEscapeUtilsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testConstructor() |
void |
testEscapeCsvString() |
void |
testEscapeCsvWriter() |
void |
testEscapeEcmaScript() |
void |
testEscapeHiragana()
Tests https://issues.apache.org/jira/browse/LANG-339
|
void |
testEscapeHtml() |
void |
testEscapeHtmlHighUnicode()
Tests // https://issues.apache.org/jira/browse/LANG-480
|
void |
testEscapeHtmlVersions() |
void |
testEscapeJava() |
void |
testEscapeJavaWithSlash()
Tests https://issues.apache.org/jira/browse/LANG-421
|
void |
testEscapeXml() |
void |
testEscapeXmlAllCharacters() |
void |
testEscapeXmlSupplementaryCharacters()
Tests Supplementary characters.
|
void |
testLang313() |
void |
testLang708()
Tests https://issues.apache.org/jira/browse/LANG-708
|
void |
testLang720()
Tests https://issues.apache.org/jira/browse/LANG-720
|
void |
testStandaloneAmphersand() |
void |
testUnescapeCsvString() |
void |
testUnescapeCsvWriter() |
void |
testUnescapeHexCharsHtml() |
void |
testUnescapeHtml4() |
void |
testUnescapeJava() |
void |
testUnescapeUnknownEntity() |
void |
testUnescapeXmlSupplementaryCharacters()
Reverse of the above.
|
public StringEscapeUtilsTest()
public void testConstructor()
public void testEscapeJava() throws IOException
IOExceptionpublic void testEscapeJavaWithSlash()
public void testUnescapeJava() throws IOException
IOExceptionpublic void testEscapeEcmaScript()
public void testEscapeHtml()
public void testUnescapeHtml4()
public void testUnescapeHexCharsHtml()
public void testUnescapeUnknownEntity() throws Exception
Exceptionpublic void testEscapeHtmlVersions() throws Exception
Exceptionpublic void testEscapeXml() throws Exception
Exceptionpublic void testEscapeXmlSupplementaryCharacters()
From http://www.w3.org/International/questions/qa-escapes
Supplementary characters are those Unicode characters that have code points higher than the characters in the Basic Multilingual Plane (BMP). In UTF-16 a supplementary character is encoded using two 16-bit surrogate code points from the BMP. Because of this, some people think that supplementary characters need to be represented using two escapes, but this is incorrect - you must use the single, code point value for that character. For example, use 𣎴 rather than .
public void testEscapeXmlAllCharacters()
public void testUnescapeXmlSupplementaryCharacters()
public void testStandaloneAmphersand()
public void testLang313()
public void testEscapeCsvString() throws Exception
Exceptionpublic void testEscapeCsvWriter() throws Exception
Exceptionpublic void testUnescapeCsvString() throws Exception
Exceptionpublic void testUnescapeCsvWriter() throws Exception
Exceptionpublic void testEscapeHtmlHighUnicode() throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void testEscapeHiragana()
public void testLang708() throws IOException
IOException - if an I/O error occurspublic void testLang720()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.