public void parse(byte[] matchesText,int offset){
  bitScore=0;
  expected=0;
  percentIdentity=0;
  int end=Utilities.nextNewLine(matchesText,offset);
  offset=skipTabs(matchesText,offset,11);
  String[] tokens=Utilities.split(matchesText,offset,end,(byte)'\t');
  for (  String token : tokens) {
    if (token.startsWith("AS:i:"))     bitScore=Integer.parseInt(token.substring(5));
 else     if (token.startsWith("ZE:f:"))     expected=Float.parseFloat(token.substring(5));
 else     if (token.startsWith("ZI:i:"))     percentIdentity=Float.parseFloat(token.substring(5));
  }
}

public void parse ( byte [ ] matchesText , int offset ) { bitScore = 0 ; expected = 0 ; percentIdentity = 0 ; int end = Utilities . nextNewLine ( matchesText , offset ) ; offset = skipTabs ( matchesText , offset , 11 ) ; String [ ] tokens = Utilities . split ( matchesText , offset , end , ( byte ) '\t' ) ; for ( String token : tokens ) { if ( token . startsWith ( "AS:i:" ) ) bitScore = Integer . parseInt ( token . substring ( 5 ) ) ; else if ( token . startsWith ( "ZE:f:" ) ) expected = Float . parseFloat ( token . substring ( 5 ) ) ; else if ( token . startsWith ( "ZI:i:" ) ) percentIdentity = Float . parseFloat ( token . substring ( 5 ) ) ; } }
parse sam match that starts at given offset ( ignoring any further matches that come after a newline )
