public Set<String> names(){
  TreeSet<String> result=new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
  for (int i=0; i < length(); i++) {
    result.add(getFieldName(i));
  }
  return Collections.unmodifiableSet(result);
}

public Set < String > names ( ) { TreeSet < String > result = new TreeSet < String > ( String . CASE_INSENSITIVE_ORDER ) ; for ( int i = 0 ; i < length ( ) ; i ++ ) { result . add ( getFieldName ( i ) ) ; } return Collections . unmodifiableSet ( result ) ; }
returns an immutable case - insensitive set of header names .
