public class Utils
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
protected static java.lang.String |
CGLIB_IDENTIFIER |
protected static java.lang.String |
JAVASSIST_IDENTIFIER |
コンストラクタと説明 |
---|
Utils() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.lang.String |
bufferToSha1(byte[] buffer)
非推奨です。
As of 4.4.7,
superseded by
ChecksumProvider#putBytes(byte[]) |
static java.lang.String |
bytesToHex(byte[] data)
非推奨です。
As of 4.4.7,
superseded by the use of
commons.codec.binary.Hex |
static java.lang.String |
byteToHex(byte data)
非推奨です。
As of 4.4.7,
superseded by the use of
commons.codec.binary.Hex |
static byte[] |
calculateMessageDigest(byte[] buffer)
非推奨です。
As of 4.4.7,
superseded by
ChecksumProvider#putBytes(byte[]) |
static byte[] |
calculateMessageDigest(java.nio.ByteBuffer buffer)
非推奨です。
As of 4.4.7,
superseded by
ChecksumProvider#putBytes(ByteBuffer) |
static void |
closeQuietly(java.io.Closeable is) |
static java.lang.String[] |
getObjectVoidMethods(java.lang.Class clazz)
primarily used in Grinder to discover what methods to call
|
static java.lang.String |
getThreadIdentifier()
Returns a
String which can be used to correlate log messages. |
static java.lang.Object |
internalForm(Permissions p)
Returns the internal representation of a
Permissions object. |
static byte[] |
pathToSha1(java.lang.String fileName)
非推奨です。
As of 4.4.7,
superseded by
ChecksumProvider#putBytes(String) |
static char |
toHexChar(int i)
非推奨です。
As of 4.4.7,
superseded by the use of
commons.codec.binary.Hex |
static Permissions |
toPermissions(java.lang.Object o)
Returns a
Permissions instance from its internal representation. |
static <T extends IObject> |
trueClass(java.lang.Class<T> source)
finds the "true" class identified by a given Class object.
|
static java.lang.Object |
trueInstance(java.lang.Class source)
instantiates an object using the trueClass.
|
protected static final java.lang.String CGLIB_IDENTIFIER
protected static final java.lang.String JAVASSIST_IDENTIFIER
public static <T extends IObject> java.lang.Class<T> trueClass(java.lang.Class<T> source)
source
- Regular or CGLIB-based class.public static java.lang.Object trueInstance(java.lang.Class source)
source
- Regular or CGLIB-based class.public static java.lang.String[] getObjectVoidMethods(java.lang.Class clazz)
clazz
- public static java.lang.Object internalForm(Permissions p)
Permissions
object.
Should be used with caution!public static Permissions toPermissions(java.lang.Object o)
Permissions
instance from its internal representation.
Should be used with caution!public static java.lang.String getThreadIdentifier()
String
which can be used to correlate log messages.@Deprecated public static java.lang.String bufferToSha1(byte[] buffer)
ChecksumProvider#putBytes(byte[])
RuntimeException
if MessageDigest.getInstance(String)
throws NoSuchAlgorithmException
.@Deprecated public static byte[] pathToSha1(java.lang.String fileName)
ChecksumProvider#putBytes(String)
@Deprecated public static byte[] calculateMessageDigest(java.nio.ByteBuffer buffer)
ChecksumProvider#putBytes(ByteBuffer)
ByteBuffer
@Deprecated public static byte[] calculateMessageDigest(byte[] buffer)
ChecksumProvider#putBytes(byte[])
byte[]
@Deprecated public static java.lang.String bytesToHex(byte[] data)
commons.codec.binary.Hex
data
- the byte[] to convert@Deprecated public static java.lang.String byteToHex(byte data)
commons.codec.binary.Hex
@Deprecated public static char toHexChar(int i)
commons.codec.binary.Hex
public static void closeQuietly(java.io.Closeable is)