|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.util.StringUtils
public class StringUtils
Utilities for converting objects to strings.
Field Summary | |
---|---|
static java.nio.charset.Charset |
UTF8
|
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static java.lang.String |
fromBigDecimal(java.math.BigDecimal value)
|
static java.lang.String |
fromBigInteger(java.math.BigInteger value)
|
static java.lang.String |
fromBoolean(java.lang.Boolean value)
|
static java.lang.String |
fromByte(java.lang.Byte b)
Returns the string representation of the specified Byte. |
static java.lang.String |
fromByteBuffer(java.nio.ByteBuffer byteBuffer)
Base64 encodes the data in the specified byte buffer and returns it as a base64 encoded string. |
static java.lang.String |
fromDate(java.util.Date value)
Converts the specified date to an ISO 8601 timestamp string and returns it. |
static java.lang.String |
fromDouble(java.lang.Double d)
Returns the string representation of the specified double. |
static java.lang.String |
fromFloat(java.lang.Float value)
|
static java.lang.String |
fromInteger(java.lang.Integer value)
|
static java.lang.String |
fromLong(java.lang.Long value)
|
static java.lang.String |
fromString(java.lang.String value)
|
static java.lang.String |
join(java.lang.String joiner,
java.lang.String... parts)
Joins the strings in parts with joiner between each string |
static java.lang.String |
replace(java.lang.String originalString,
java.lang.String partToMatch,
java.lang.String replacement)
|
static java.math.BigDecimal |
toBigDecimal(java.lang.String s)
|
static java.math.BigInteger |
toBigInteger(java.lang.String s)
|
static java.lang.Boolean |
toBoolean(java.lang.StringBuilder value)
|
static java.lang.Integer |
toInteger(java.lang.StringBuilder value)
|
static java.lang.String |
toString(java.lang.StringBuilder value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.nio.charset.Charset UTF8
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static java.lang.Integer toInteger(java.lang.StringBuilder value)
public static java.lang.String toString(java.lang.StringBuilder value)
public static java.lang.Boolean toBoolean(java.lang.StringBuilder value)
public static java.lang.String fromInteger(java.lang.Integer value)
public static java.lang.String fromLong(java.lang.Long value)
public static java.lang.String fromString(java.lang.String value)
public static java.lang.String fromBoolean(java.lang.Boolean value)
public static java.lang.String fromBigInteger(java.math.BigInteger value)
public static java.lang.String fromBigDecimal(java.math.BigDecimal value)
public static java.math.BigInteger toBigInteger(java.lang.String s)
public static java.math.BigDecimal toBigDecimal(java.lang.String s)
public static java.lang.String fromFloat(java.lang.Float value)
public static java.lang.String fromDate(java.util.Date value)
value
- The date to format as an ISO 8601 timestamp string.
public static java.lang.String fromDouble(java.lang.Double d)
d
- The double to represent as a string.
public static java.lang.String fromByte(java.lang.Byte b)
b
- The Byte to represent as a string.
public static java.lang.String fromByteBuffer(java.nio.ByteBuffer byteBuffer)
byteBuffer
- The data to base64 encode and return as a string.
public static java.lang.String replace(java.lang.String originalString, java.lang.String partToMatch, java.lang.String replacement)
public static java.lang.String join(java.lang.String joiner, java.lang.String... parts)
joiner
- the string to insert between the strings in partsparts
- the parts to join
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |