パッケージ jcifs.util
クラス Strings
- java.lang.Object
-
- jcifs.util.Strings
-
public final class Strings extends Object
- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static intfindTermination(byte[] buffer, int bufferIndex, int maxLen)static intfindUNITermination(byte[] buffer, int bufferIndex, int maxLen)static StringfromOEMBytes(byte[] src, int srcIndex, int len, Configuration config)static StringfromUNIBytes(byte[] src, int srcIndex, int len)static byte[]getASCIIBytes(String str)static byte[]getBytes(String str, Charset encoding)static byte[]getOEMBytes(String str, Configuration config)static byte[]getUNIBytes(String str)
-
-
-
メソッドの詳細
-
getBytes
public static byte[] getBytes(String str, Charset encoding)
- パラメータ:
str-encoding-- 戻り値:
- encoded
-
getUNIBytes
public static byte[] getUNIBytes(String str)
- パラメータ:
str-- 戻り値:
- the string as bytes (UTF16-LE)
-
getASCIIBytes
public static byte[] getASCIIBytes(String str)
- パラメータ:
str-- 戻り値:
- the string as bytes (ASCII)
-
getOEMBytes
public static byte[] getOEMBytes(String str, Configuration config)
- パラメータ:
str-config-- 戻り値:
- the string as bytes
-
fromUNIBytes
public static String fromUNIBytes(byte[] src, int srcIndex, int len)
- パラメータ:
src-srcIndex-len-- 戻り値:
- decoded string
-
findUNITermination
public static int findUNITermination(byte[] buffer, int bufferIndex, int maxLen)- パラメータ:
buffer-bufferIndex-maxLen-- 戻り値:
- position of terminating null bytes
-
fromOEMBytes
public static String fromOEMBytes(byte[] src, int srcIndex, int len, Configuration config)
- パラメータ:
src-srcIndex-len-config-- 戻り値:
- decoded string
-
findTermination
public static int findTermination(byte[] buffer, int bufferIndex, int maxLen)- パラメータ:
buffer-bufferIndex-maxLen-- 戻り値:
- position of terminating null byte
-
-