org.apache.solr.common.util
public class ByteUtils extends Object
Constructor and Description |
---|
ByteUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.