public static Pair<Integer,Boolean> parseInfoFromFilename(String name){
  try {
    if (name.startsWith(SAVED_TAB_STATE_FILE_PREFIX_INCOGNITO)) {
      int id=Integer.parseInt(name.substring(SAVED_TAB_STATE_FILE_PREFIX_INCOGNITO.length()));
      return Pair.create(id,true);
    }
 else     if (name.startsWith(SAVED_TAB_STATE_FILE_PREFIX)) {
      int id=Integer.parseInt(name.substring(SAVED_TAB_STATE_FILE_PREFIX.length()));
      return Pair.create(id,false);
    }
  }
 catch (  NumberFormatException ex) {
  }
  return null;
}

public static Pair < Integer , Boolean > parseInfoFromFilename ( String name ) { try { if ( name . startsWith ( SAVED_TAB_STATE_FILE_PREFIX_INCOGNITO ) ) { int id = Integer . parseInt ( name . substring ( SAVED_TAB_STATE_FILE_PREFIX_INCOGNITO . length ( ) ) ) ; return Pair . create ( id , true ) ; } else if ( name . startsWith ( SAVED_TAB_STATE_FILE_PREFIX ) ) { int id = Integer . parseInt ( name . substring ( SAVED_TAB_STATE_FILE_PREFIX . length ( ) ) ) ; return Pair . create ( id , false ) ; } } catch ( NumberFormatException ex ) { } return null ; }
parse the tab id and whether the tab is incognito from the tab state filename .
