toByteArray是ByteArrayOutputStream 的方法吗,该如何处理

toByteArray是ByteArrayOutputStream 的方法吗
toByteArray是ByteArrayOutputStream 的方法吗
怎么在API文档里查不到啊!求助!

------解决方案--------------------
实际上很好找,点击 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.