Java ByteArrayInputStream ClassThe ByteArrayInputStream is composed of two words: ByteArray and InputStream. As the name suggests, it can be used to read byte array as input stream. Java ByteArrayInputStream class contains an internal buffer which is used to read byte array as stream. In this stream, the data is read from a byte array. The buffer of ByteArrayInputStream automatically grows according to data. Java ByteArrayInputStream class declarationLet's see the declaration for Java.io.ByteArrayInputStream class: Java ByteArrayInputStream class constructors
Java ByteArrayInputStream class methods
Example of Java ByteArrayInputStreamLet's see a simple example of java ByteArrayInputStream class to read byte array as input stream. Output: ASCII value of Character is:35; Special character is: # ASCII value of Character is:36; Special character is: $ ASCII value of Character is:37; Special character is: % ASCII value of Character is:38; Special character is: &
Next TopicJava DataOutputStream Class
|