com.jcraft.jsch.Util Class Reference

List of all members.

Static Package Functions

static byte[] fromBase64 (byte[] buf, int start, int length)
static byte[] toBase64 (byte[] buf, int start, int length)
static String[] split (String foo, String split)
static boolean glob (byte[] pattern, byte[] name)
static String quote (String path)
static String unquote (String path)
static byte[] unquote (byte[] path)
static String getFingerPrint (HASH hash, byte[] data)
 Creates an hexadecimal fingerprint of some data.
static boolean array_equals (byte[] foo, byte bar[])
static Socket createSocket (String host, int port, int timeout) throws JSchException
static byte[] str2byte (String str, String encoding)
static byte[] str2byte (String str)
static String byte2str (byte[] str, String encoding)
static String byte2str (byte[] str, int s, int l, String encoding)
static String byte2str (byte[] str)
static String byte2str (byte[] str, int s, int l)
static void bzero (byte[] foo)
static String diffString (String str, String[] not_available)

Static Package Attributes

static final byte[] empty = str2byte("")

Static Private Member Functions

static byte val (byte foo)
static boolean glob0 (byte[] pattern, int pattern_index, byte[] name, int name_index)
static boolean glob (byte[] pattern, int pattern_index, byte[] name, int name_index)
static int skipUTF8Char (byte b)

Static Private Attributes

static final byte[] b64 = Util.str2byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")
static String[] chars
 hexadecimal digits

Detailed Description

Definition at line 33 of file Util.java.


Member Function Documentation

static boolean com.jcraft.jsch.Util.array_equals ( byte[]  foo,
byte  bar[] 
) [static, package]

Definition at line 332 of file Util.java.

static String com.jcraft.jsch.Util.byte2str ( byte[]  str,
int  s,
int  l 
) [static, package]

Definition at line 427 of file Util.java.

References com.jcraft.jsch.Util.byte2str().

static String com.jcraft.jsch.Util.byte2str ( byte[]  str  )  [static, package]

Definition at line 423 of file Util.java.

References com.jcraft.jsch.Util.byte2str().

static String com.jcraft.jsch.Util.byte2str ( byte[]  str,
int  s,
int  l,
String  encoding 
) [static, package]

Definition at line 416 of file Util.java.

static String com.jcraft.jsch.Util.byte2str ( byte[]  str,
String  encoding 
) [static, package]
static void com.jcraft.jsch.Util.bzero ( byte[]  foo  )  [static, package]

Definition at line 453 of file Util.java.

static Socket com.jcraft.jsch.Util.createSocket ( String  host,
int  port,
int  timeout 
) throws JSchException [static, package]

Definition at line 339 of file Util.java.

static String com.jcraft.jsch.Util.diffString ( String  str,
String[]  not_available 
) [static, package]

Definition at line 460 of file Util.java.

static byte [] com.jcraft.jsch.Util.fromBase64 ( byte[]  buf,
int  start,
int  length 
) [static, package]

Definition at line 43 of file Util.java.

References com.jcraft.jsch.Util.val().

static String com.jcraft.jsch.Util.getFingerPrint ( HASH  hash,
byte[]  data 
) [static, package]

Creates an hexadecimal fingerprint of some data.

Parameters:
hash the hash algorithm to use.
data the data to fingerprint.
Returns:
the fingerprint, in lower-case hexadecimal format.

Definition at line 312 of file Util.java.

References com.jcraft.jsch.Util.chars, and com.jcraft.jsch.HASH.init().

static boolean com.jcraft.jsch.Util.glob ( byte[]  pattern,
int  pattern_index,
byte[]  name,
int  name_index 
) [static, private]

Definition at line 138 of file Util.java.

References com.jcraft.jsch.Util.glob(), and com.jcraft.jsch.Util.skipUTF8Char().

static boolean com.jcraft.jsch.Util.glob ( byte[]  pattern,
byte[]  name 
) [static, package]

Definition at line 124 of file Util.java.

References com.jcraft.jsch.Util.glob0().

Referenced by com.jcraft.jsch.Util.glob(), and com.jcraft.jsch.Util.glob0().

static boolean com.jcraft.jsch.Util.glob0 ( byte[]  pattern,
int  pattern_index,
byte[]  name,
int  name_index 
) [static, private]

Definition at line 127 of file Util.java.

References com.jcraft.jsch.Util.glob().

Referenced by com.jcraft.jsch.Util.glob().

static String com.jcraft.jsch.Util.quote ( String  path  )  [static, package]

Definition at line 252 of file Util.java.

References com.jcraft.jsch.Util.byte2str(), and com.jcraft.jsch.Util.str2byte().

static int com.jcraft.jsch.Util.skipUTF8Char ( byte  b  )  [static, private]

Definition at line 476 of file Util.java.

Referenced by com.jcraft.jsch.Util.glob().

static String [] com.jcraft.jsch.Util.split ( String  foo,
String  split 
) [static, package]

Definition at line 101 of file Util.java.

static byte [] com.jcraft.jsch.Util.str2byte ( String  str  )  [static, package]

Definition at line 408 of file Util.java.

References com.jcraft.jsch.Util.str2byte().

static byte [] com.jcraft.jsch.Util.str2byte ( String  str,
String  encoding 
) [static, package]
static byte [] com.jcraft.jsch.Util.toBase64 ( byte[]  buf,
int  start,
int  length 
) [static, package]

Definition at line 58 of file Util.java.

References com.jcraft.jsch.Util.b64.

static byte [] com.jcraft.jsch.Util.unquote ( byte[]  path  )  [static, package]

Definition at line 280 of file Util.java.

static String com.jcraft.jsch.Util.unquote ( String  path  )  [static, package]

Definition at line 273 of file Util.java.

References com.jcraft.jsch.Util.byte2str(), and com.jcraft.jsch.Util.str2byte().

static byte com.jcraft.jsch.Util.val ( byte  foo  )  [static, private]

Definition at line 36 of file Util.java.

References com.jcraft.jsch.Util.b64.

Referenced by com.jcraft.jsch.Util.fromBase64().


Member Data Documentation

final byte [] com.jcraft.jsch.Util.b64 = Util.str2byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=") [static, private]

Definition at line 35 of file Util.java.

Referenced by com.jcraft.jsch.Util.toBase64(), and com.jcraft.jsch.Util.val().

String [] com.jcraft.jsch.Util.chars [static, private]
Initial value:
{
    "0","1","2","3","4","5","6","7","8","9", "a","b","c","d","e","f"
  }

hexadecimal digits

Definition at line 302 of file Util.java.

Referenced by com.jcraft.jsch.Util.getFingerPrint().

final byte [] com.jcraft.jsch.Util.empty = str2byte("") [static, package]

Definition at line 431 of file Util.java.


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1