ByteArrayInputStream is used to get bytes in a streamed way from a byte array. ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method. Closing a ByteArrayInputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException .
public class ByteArrayInputStream
ByteArrayInputStreamDemo CODE import java.io.*; OUTPUT Available Bytes : 11 DESCRIPTION In the above program we have created a string THINGS TO TRY
|