public int read() {
     return bais.read();
 }
 public int read(byte[] buf, int off, int len) {
     return bais.read(buf, off, len);
 }
 public int available() {
     return bais.available();
 }