java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.ByteArrayInputStream
 public class ByteArrayInputStream
  
 extends InputStream
This class allows an application to create an input stream in which the bytes read are supplied by the contents of a byte array. Applications can also read bytes from a string by using a StringBufferInputStream.