| Modifier and Type | Method and Description |
|---|---|
static char[] |
asCharArray(byte[] bytes)
Do a simple conversion of an array of 8 bit characters into a string.
|
protected int |
encodingBodyLength()
Length including null bytes to maintain an multiple of 4.
|
static String |
fromByteArray(byte[] bytes)
Convert an array of 8 bit characters into a string.
|
static String |
fromUTF8ByteArray(byte[] bytes) |
int |
getPadding() |
void |
setPadding(int padding) |
static String[] |
split(String input,
char delimiter) |
static byte[] |
toByteArray(char[] chars) |
static byte[] |
toByteArray(String string) |
protected void |
toBytes()
Encode simple type to bytes.
|
static String |
toLowerCase(String string)
A locale independent version of toLowerCase.
|
static String |
toUpperCase(String string)
A locale independent version of toUpperCase.
|
static byte[] |
toUTF8ByteArray(char[] string) |
static void |
toUTF8ByteArray(char[] string,
OutputStream sOut) |
static byte[] |
toUTF8ByteArray(String string) |
protected void |
toValue()
Decode bytes to simple value.
|
decode, decodeBody, encodeBody, encodeBody, getBytes, isSimple, setBytesdecode, encode, encode, encodingLength, getDataType, getValue, setValuepublic XdrString()
public XdrString(String value)
protected void toBytes()
XdrSimpleprotected int encodingBodyLength()
XdrSimpleencodingBodyLength in class XdrSimple<String>protected void toValue()
throws IOException
XdrSimpletoValue in class XdrSimple<String>IOExceptionpublic void setPadding(int padding)
public int getPadding()
public static String fromUTF8ByteArray(byte[] bytes)
public static byte[] toUTF8ByteArray(String string)
public static byte[] toUTF8ByteArray(char[] string)
public static void toUTF8ByteArray(char[] string,
OutputStream sOut)
throws IOException
IOExceptionpublic static String toUpperCase(String string)
string - input to be convertedpublic static String toLowerCase(String string)
string - input to be convertedpublic static byte[] toByteArray(char[] chars)
public static byte[] toByteArray(String string)
public static String fromByteArray(byte[] bytes)
bytes - 8 bit characters.public static char[] asCharArray(byte[] bytes)
bytes - 8 bit characters.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.