public static final boolean isASCII(BufferedReader buffer) throws IOException {
  final char[] readAhead=new char[300];
  buffer.mark(readAhead.length);
  buffer.read(readAhead,0,readAhead.length);
  buffer.reset();
  final String readAheadString=new String(readAhead);
  if (readAheadString.contains("facet normal") && readAheadString.contains("outer loop"))   return true;
  return false;
}

public static final boolean isASCII ( BufferedReader buffer ) throws IOException { final char [ ] readAhead = new char [ 300 ] ; buffer . mark ( readAhead . length ) ; buffer . read ( readAhead , 0 , readAhead . length ) ; buffer . reset ( ) ; final String readAheadString = new String ( readAhead ) ; if ( readAheadString . contains ( "facet normal" ) && readAheadString . contains ( "outer loop" ) ) return true ; return false ; }
determine if a given bufferedreader appears to be in ascii format .
