static final DataInputStream BufferToDataInputStream(final byte[] buffer){
  final ByteArrayInputStream bufferByteStream=new ByteArrayInputStream(buffer);
  final DataInputStream bufferDataStream=new DataInputStream(bufferByteStream);
  try {
    bufferByteStream.close();
  }
 catch (  final IOException ioe) {
    if (Cfg.EXCEPTION) {
      Check.log(ioe);
    }
    if (Cfg.DEBUG) {
      Check.log(ioe);
    }
    if (Cfg.DEBUG) {
      Check.log(TAG + " IOException() caught in Utils.BufferToDataInputStream()");
    }
  }
  return bufferDataStream;
}

static final DataInputStream BufferToDataInputStream ( final byte [ ] buffer ) { final ByteArrayInputStream bufferByteStream = new ByteArrayInputStream ( buffer ) ; final DataInputStream bufferDataStream = new DataInputStream ( bufferByteStream ) ; try { bufferByteStream . close ( ) ; } catch ( final IOException ioe ) { if ( Cfg . EXCEPTION ) { Check . log ( ioe ) ; } if ( Cfg . DEBUG ) { Check . log ( ioe ) ; } if ( Cfg . DEBUG ) { Check . log ( TAG + " IOException() caught in Utils.BufferToDataInputStream()" ) ; } } return bufferDataStream ; }
converts a buffer to a datainputstream .
