maspack.fileutil.jsch
Class UtilTrim
java.lang.Object
maspack.fileutil.jsch.UtilTrim
public class UtilTrim
- extends java.lang.Object
Method Summary |
static boolean |
array_equals(byte[] foo,
byte[] bar)
|
static java.lang.String |
byte2str(byte[] str)
|
static java.lang.String |
byte2str(byte[] str,
int s,
int l)
|
static java.lang.String |
byte2str(byte[] str,
int s,
int l,
java.lang.String encoding)
|
static java.lang.String |
byte2str(byte[] str,
java.lang.String encoding)
|
static void |
bzero(byte[] foo)
|
static byte[] |
fromBase64(byte[] buf,
int start,
int length)
|
static byte[] |
fromFile(java.io.File file)
|
static byte[] |
fromFile(java.lang.String _file)
|
static byte[] |
fromStream(java.io.InputStream in,
long length)
|
static java.lang.String |
getFingerPrint(com.jcraft.jsch.HASH hash,
byte[] data)
|
static byte[] |
str2byte(java.lang.String str)
|
static byte[] |
str2byte(java.lang.String str,
java.lang.String encoding)
|
static byte[] |
toBase64(byte[] buf,
int start,
int length)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UtilTrim
public UtilTrim()
fromBase64
public static byte[] fromBase64(byte[] buf,
int start,
int length)
toBase64
public static byte[] toBase64(byte[] buf,
int start,
int length)
getFingerPrint
public static java.lang.String getFingerPrint(com.jcraft.jsch.HASH hash,
byte[] data)
str2byte
public static byte[] str2byte(java.lang.String str,
java.lang.String encoding)
str2byte
public static byte[] str2byte(java.lang.String str)
byte2str
public static java.lang.String byte2str(byte[] str,
java.lang.String encoding)
byte2str
public static java.lang.String byte2str(byte[] str,
int s,
int l,
java.lang.String encoding)
byte2str
public static java.lang.String byte2str(byte[] str)
byte2str
public static java.lang.String byte2str(byte[] str,
int s,
int l)
bzero
public static void bzero(byte[] foo)
fromStream
public static byte[] fromStream(java.io.InputStream in,
long length)
throws java.io.IOException
- Throws:
java.io.IOException
fromFile
public static byte[] fromFile(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
fromFile
public static byte[] fromFile(java.lang.String _file)
throws java.io.IOException
- Throws:
java.io.IOException
array_equals
public static boolean array_equals(byte[] foo,
byte[] bar)