public boolean seek(ByteBuffer byteBuffer){
  byteBuffer.rewind();
  logger.config("ByteBuffer pos:" + byteBuffer.position() + ":limit"+ byteBuffer.limit()+ ":cap"+ byteBuffer.capacity());
  byte[] tagIdentifier=new byte[FIELD_TAGID_LENGTH];
  byteBuffer.get(tagIdentifier,0,FIELD_TAGID_LENGTH);
  if (!(Arrays.equals(tagIdentifier,TAG_ID))) {
    return false;
  }
  if (byteBuffer.get() != getMajorVersion()) {
    return false;
  }
  return byteBuffer.get() == getRevision();
}

public boolean seek ( ByteBuffer byteBuffer ) { byteBuffer . rewind ( ) ; logger . config ( "ByteBuffer pos:" + byteBuffer . position ( ) + ":limit" + byteBuffer . limit ( ) + ":cap" + byteBuffer . capacity ( ) ) ; byte [ ] tagIdentifier = new byte [ FIELD_TAGID_LENGTH ] ; byteBuffer . get ( tagIdentifier , 0 , FIELD_TAGID_LENGTH ) ; if ( ! ( Arrays . equals ( tagIdentifier , TAG_ID ) ) ) { return false ; } if ( byteBuffer . get ( ) != getMajorVersion ( ) ) { return false ; } return byteBuffer . get ( ) == getRevision ( ) ; }
does a tag of the correct version exist in this file .
