Class jls.util.StringCodec
This class provides various String related codecs.
Defined in: StringCodec.js.
Class Summary
| Constructor Attributes |
Constructor Name and Description |
| |
|
Method Summary
| Method Attributes |
Method Name and Description |
| <static> |
Decodes a specified base64 string and returns the decoded buffer.
|
| <static> |
Encodes a specified buffer and returns the encoded base64 string.
|
| <static> |
Decodes a specified hexadecimal string and returns the decoded buffer.
|
| <static> |
jls.util.StringCodec. hexEncode(buffer, b64pad)
Encodes a specified buffer and returns the encoded hexadecimal string.
|
Class Detail
jls.util.StringCodec()
Method Detail
Decodes a specified base64 string and returns the decoded buffer.
- Parameters:
-
{String} s
- The string to decode.
-
{jls.lang.ByteBuffer} buffer
Optional
- The buffer to use.
- Returns:
- {jls.lang.ByteBuffer} The decoded buffer.
<static>
{String}
jls.util.StringCodec.base64Encode(buffer, b64pad)
Encodes a specified buffer and returns the encoded base64 string.
- Parameters:
-
{jls.lang.ByteBuffer} buffer
- The buffer to encode.
-
{String} b64pad
Optional
- The padding character to use.
- Returns:
- {String} The encoded string.
Decodes a specified hexadecimal string and returns the decoded buffer.
- Parameters:
-
{String} s
- The string to decode.
-
{jls.lang.ByteBuffer} buffer
Optional
- The buffer to use.
- Returns:
- {jls.lang.ByteBuffer} The decoded buffer.
<static>
{String}
jls.util.StringCodec.hexEncode(buffer, b64pad)
Encodes a specified buffer and returns the encoded hexadecimal string.
- Parameters:
-
{jls.lang.ByteBuffer} buffer
- The buffer to encode.
-
{String} b64pad
Optional
- The padding character to use.
- Returns:
- {String} The encoded string.
Documentation generated by
JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:15 GMT+0100 (CET)