Class Util

java.lang.Object
com.jcraft.jsch.Util

class Util extends Object
  • Field Details

    • b64

      private static final byte[] b64
    • chars

      private static String[] chars
    • empty

      static final byte[] empty
  • Constructor Details

    • Util

      Util()
  • Method Details

    • val

      private static byte val(byte foo)
    • fromBase64

      static byte[] fromBase64(byte[] buf, int start, int length) throws JSchException
      Throws:
      JSchException
    • toBase64

      static byte[] toBase64(byte[] buf, int start, int length)
    • split

      static String[] split(String foo, String split)
    • glob

      static boolean glob(byte[] pattern, byte[] name)
    • glob0

      private static boolean glob0(byte[] pattern, int pattern_index, byte[] name, int name_index)
    • glob

      private static boolean glob(byte[] pattern, int pattern_index, byte[] name, int name_index)
    • quote

      static String quote(String path)
    • unquote

      static String unquote(String path)
    • unquote

      static byte[] unquote(byte[] path)
    • getFingerPrint

      static String getFingerPrint(HASH hash, byte[] data)
    • array_equals

      static boolean array_equals(byte[] foo, byte[] bar)
    • createSocket

      static Socket createSocket(String host, int port, int timeout) throws JSchException
      Throws:
      JSchException
    • str2byte

      static byte[] str2byte(String str, String encoding)
    • str2byte

      static byte[] str2byte(String str)
    • byte2str

      static String byte2str(byte[] str, String encoding)
    • byte2str

      static String byte2str(byte[] str, int s, int l, String encoding)
    • byte2str

      static String byte2str(byte[] str)
    • byte2str

      static String byte2str(byte[] str, int s, int l)
    • toHex

      static String toHex(byte[] str)
    • bzero

      static void bzero(byte[] foo)
    • diffString

      static String diffString(String str, String[] not_available)
    • checkTilde

      static String checkTilde(String str)
    • skipUTF8Char

      private static int skipUTF8Char(byte b)
    • fromFile

      static byte[] fromFile(String _file) throws IOException
      Throws:
      IOException