public static final GCodeFlavor tasteFlavor(Resources res,int resId) throws IOException, NotFoundException {
  BufferedInputStream buffer=new BufferedInputStream(res.openRawResource(resId));
  GCodeFlavor ret=tasteFlavor(buffer);
  buffer.close();
  return ret;
}

public static final GCodeFlavor tasteFlavor ( Resources res , int resId ) throws IOException , NotFoundException { BufferedInputStream buffer = new BufferedInputStream ( res . openRawResource ( resId ) ) ; GCodeFlavor ret = tasteFlavor ( buffer ) ; buffer . close ( ) ; return ret ; }
determine the content generator ( i . e . slic3r , skeinforge ) for the given resource .
