org.apache.commons.ssl
Class Util
java.lang.Object
org.apache.commons.ssl.Util
public class Util
- extends Object
- Since:
- 28-Feb-2006
- Author:
- Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com
Constructor Summary |
Util()
|
Method Summary |
static String |
cipherToAuthType(String cipher)
|
static int[] |
fill(byte[] buf,
int offset,
ByteArrayInputStream in)
|
static int[] |
fill(byte[] buf,
int offset,
InputStream in)
|
static boolean |
isWhiteSpace(char c)
|
static boolean |
isYes(String yesString)
|
static void |
main(String[] args)
|
static String |
pad(String s,
int length,
boolean left)
|
static Map |
parseArgs(String[] cargs)
|
static void |
pipeStream(InputStream in,
OutputStream out)
|
static void |
pipeStream(InputStream in,
OutputStream out,
boolean autoClose)
|
static byte[] |
resizeArray(byte[] bytes)
|
static byte[] |
streamToBytes(ByteArrayInputStream in)
|
static byte[] |
streamToBytes(ByteArrayInputStream in,
int maxLength)
|
static byte[] |
streamToBytes(InputStream in)
|
static byte[] |
streamToBytes(InputStream in,
int maxLength)
|
static HostPort |
toAddress(String target,
int defaultPort)
|
static String |
trim(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIZE_KEY
public static final int SIZE_KEY
- See Also:
- Constant Field Values
LAST_READ_KEY
public static final int LAST_READ_KEY
- See Also:
- Constant Field Values
Util
public Util()
isYes
public static boolean isYes(String yesString)
trim
public static String trim(String s)
isWhiteSpace
public static boolean isWhiteSpace(char c)
pipeStream
public static void pipeStream(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
pipeStream
public static void pipeStream(InputStream in,
OutputStream out,
boolean autoClose)
throws IOException
- Throws:
IOException
streamToBytes
public static byte[] streamToBytes(ByteArrayInputStream in,
int maxLength)
streamToBytes
public static byte[] streamToBytes(InputStream in,
int maxLength)
throws IOException
- Throws:
IOException
streamToBytes
public static byte[] streamToBytes(InputStream in)
throws IOException
- Throws:
IOException
streamToBytes
public static byte[] streamToBytes(ByteArrayInputStream in)
fill
public static int[] fill(byte[] buf,
int offset,
InputStream in)
throws IOException
- Throws:
IOException
fill
public static int[] fill(byte[] buf,
int offset,
ByteArrayInputStream in)
resizeArray
public static byte[] resizeArray(byte[] bytes)
pad
public static String pad(String s,
int length,
boolean left)
parseArgs
public static Map parseArgs(String[] cargs)
toAddress
public static HostPort toAddress(String target,
int defaultPort)
throws UnknownHostException
- Throws:
UnknownHostException
cipherToAuthType
public static String cipherToAuthType(String cipher)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception