Class TextEncoder
java.lang.Object
com.opensymphony.module.sitemesh.filter.TextEncoder
Converts text stored in byte[] to char[] using specified encoding.
- Version:
- $Revision: 1.1 $
- Author:
- Scott Farquhar, Hani Suleiman, Joe Walnes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]
private char[]
get13Buffer
(byte[] data, String encoding) private char[]
get14Buffer
(byte[] data, String encoding) private char[]
trim
(char[] ca, int len)
-
Field Details
-
DEFAULT_ENCODING
-
JDK14
private static final boolean JDK14
-
-
Constructor Details
-
TextEncoder
public TextEncoder()
-
-
Method Details
-
encode
- Throws:
IOException
-
get13Buffer
- Throws:
IOException
-
get14Buffer
- Throws:
IOException
-
trim
private char[] trim(char[] ca, int len)
-