| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.common.util.ByteUtils
public class ByteUtils
| Constructor Summary | |
|---|---|
ByteUtils()
 | 
|
| Method Summary | |
|---|---|
static int | 
UTF16toUTF8(CharSequence s,
            int offset,
            int len,
            byte[] result,
            int resultOffset)
Writes UTF8 into the byte array, starting at offset.  | 
static String | 
UTF8toUTF16(byte[] utf8,
            int offset,
            int len)
Convert UTF8 bytes into a String  | 
static int | 
UTF8toUTF16(byte[] utf8,
            int offset,
            int len,
            char[] out,
            int out_offset)
Converts utf8 to utf16 and returns the number of 16 bit Java chars written.  | 
static void | 
UTF8toUTF16(byte[] utf8,
            int offset,
            int len,
            org.noggit.CharArr out)
Convert UTF8 bytes into UTF16 characters.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ByteUtils()
| Method Detail | 
|---|
public static int UTF8toUTF16(byte[] utf8,
                              int offset,
                              int len,
                              char[] out,
                              int out_offset)
public static void UTF8toUTF16(byte[] utf8,
                               int offset,
                               int len,
                               org.noggit.CharArr out)
public static String UTF8toUTF16(byte[] utf8,
                                 int offset,
                                 int len)
public static int UTF16toUTF8(CharSequence s,
                              int offset,
                              int len,
                              byte[] result,
                              int resultOffset)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||