实际上很好找,点击 API 文档最上面部分,有一个“Index(索引)”,然后选择 T,再使用浏览器的查找功能查找 toByteArray 就可以找到了。这是 API 文档的使用技巧之一!toByteArray 方法在三个类当中存在:toByteArray() - Method in class java.io.ByteArrayOutputStream Creates a newly allocated byte array. toByteArray() - Method in class java.math.BigInteger Returns a byte array containing the two's-complement representation of this BigInteger. toByteArray() - Method in class java.text.CollationKey Converts the CollationKey to a sequence of bits.
http://topic.csdn.net/u/20100710/11/2bac0e2d-0531-40c5-a726-73bb9e7632a2.html
Creates a newly allocated byte array.
toByteArray() - Method in class java.math.BigInteger
Returns a byte array containing the two's-complement representation of this BigInteger.
toByteArray() - Method in class java.text.CollationKey
Converts the CollationKey to a sequence of bits.
byte[] array = bigTest.toByteArray();