Java ByteArrayOutputStream toByteArray()方法(带示例)

  • Post author:
  • Post category:java


ByteArrayOutputStream类toByteArray()方法

(

ByteArrayOutputStream Class toByteArray() method

)


  • toByteArray() method

    is available in

    java.io

    package.


    toByteArray()方法

    在java.io包中可用。


  • toByteArray() method

    is used to instantiate a new buffer of “byte” type with the same size as the current size of this ByteArrayOutputStream.


    toByteArray()方法

    用于实例化一个“字节”类型的新缓冲区,该缓冲区的大小与此ByteArrayOutputStream的当前大小相同。


  • toByteArray() method

    is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.


    toByteArray()方法

    是一个非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。


  • toByteArray() m