public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
md5(String message)
Generates de MD5 checksum for the specified message.
|
static String |
md5(String message,
int nchar)
Generates de MD5 checksum for the specified message.
|
static String |
quotize(String s)
Puts quotes around a String.
|
static String |
quotize(String s,
String quoteChar)
Puts quotes around a String.
|
static String |
readString(InputStream stream)
Reads a string from the input stream.
|
static String |
singleQuotize(String s)
Puts single quotes around a string.
|
public static String quotize(String s)
s - the string to be 'quotized'public static String quotize(String s, String quoteChar)
s - the string to be 'quotized'public static String singleQuotize(String s)
s - the string to be single 'quotized'public static String md5(String message)
message - The message.public static String md5(String message, int nchar)
message - The message.nchar - The maximum number of chars for the result hash.public static String readString(InputStream stream) throws IOException
stream - The stream.IOException - If an I/O error occurs.Copyright © 2014 Feedzai. All Rights Reserved.