private static String getHeaderInfo ( String name , String headerLine ) { String [ ] fields = headerLine . split ( "[\t ]" ) ; for ( String field : fields ) { if ( field . startsWith ( name + "=" ) ) { String [ ] subfields = field . split ( "=" ) ; return subfields [ 1 ] ; } } return null ; }
Get information from a Wig header line .