public static final boolean isASCII(Resources res,int resId) throws IOException, NotFoundException {
  BufferedReader buffer=new BufferedReader(new InputStreamReader(res.openRawResource(resId)));
  boolean isASCII=isASCII(buffer);
  buffer.close();
  return isASCII;
}

public static final boolean isASCII ( Resources res , int resId ) throws IOException , NotFoundException { BufferedReader buffer = new BufferedReader ( new InputStreamReader ( res . openRawResource ( resId ) ) ) ; boolean isASCII = isASCII ( buffer ) ; buffer . close ( ) ; return isASCII ; }
determine if a given resource appears to be in ascii format .
