
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
03/Dec/05 09:13 PM
|
|
There are to conversion methods in StringUtils class for String <-> UTF-8 transformation.
Here is the first one:
/**
* Return an UTF-8 encoded String
* @param bytes The byte array to be transformed to a String
* @return A String.
*/
public static String toUtf8( byte[] bytes )
{
...
It name should be changed to something like fromUtf8 or Utf8ToString and the definition in javadoc may be "Return a String converted from its UTF-8 encoded byte[] representation"
And one more method:
/**
* Return an UTF-8 encoded String
* @param string The string to be transformed to a byte array
* @return The transformed byte array
*/
public static byte[] getBytesUtf8( String string )
{
...
This methods javadoc may be "Return UTF-8 encoded byte[] representation of a String"
(PS: Sorry for filing this trivial issue but currently I work on a branch and I do not want to cause a mess here.)
|
|
Description
|
There are to conversion methods in StringUtils class for String <-> UTF-8 transformation.
Here is the first one:
/**
* Return an UTF-8 encoded String
* @param bytes The byte array to be transformed to a String
* @return A String.
*/
public static String toUtf8( byte[] bytes )
{
...
It name should be changed to something like fromUtf8 or Utf8ToString and the definition in javadoc may be "Return a String converted from its UTF-8 encoded byte[] representation"
And one more method:
/**
* Return an UTF-8 encoded String
* @param string The string to be transformed to a byte array
* @return The transformed byte array
*/
public static byte[] getBytesUtf8( String string )
{
...
This methods javadoc may be "Return UTF-8 encoded byte[] representation of a String"
(PS: Sorry for filing this trivial issue but currently I work on a branch and I do not want to cause a mess here.) |
Show » |
made changes - 03/Dec/05 09:13 PM
| Field |
Original Value |
New Value |
|
Resolution
|
|
Fixed
[ 1
]
|
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
made changes - 19/Dec/05 09:45 PM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
made changes - 07/Feb/06 01:29 PM
|
Key
|
DIRSNICKERS-116
|
DIRSERVER-40
|
|
Fix Version/s
|
|
pre-1.0
[ 12310782
]
|
|
Component/s
|
|
asn1
[ 12310712
]
|
|
Affects Version/s
|
|
pre-1.0
[ 12310782
]
|
|
Component/s
|
General
[ 11188
]
|
|
|
Project
|
Directory ASN1
[ 10517
]
|
ApacheDS
[ 12310260
]
|
|
Type
|
Improvement
[ 4
]
|
Bug
[ 1
]
|
|