public FileDataRowReader(DataRowFactory factory,List<AttributeDataSource> attributeDataSources,double sampleRatio,int sampleSize,String separatorsRegExpr,char[] commentChars,boolean useQuotes,char quoteChar,char escapeChar,boolean trimLines,boolean skipErrorLines,Charset encoding,RandomGenerator random) throws IOException {
  super(factory);
  this.sampleRatio=sampleRatio;
  this.maxNumber=sampleSize;
  this.attributes=new Attribute[attributeDataSources.size()];
  this.dataSourceIndex=new int[attributeDataSources.size()][2];
  this.rapidMinerLineReader=new RapidMinerLineReader(separatorsRegExpr,commentChars,useQuotes,quoteChar,escapeChar,trimLines,skipErrorLines);
  this.random=random;
  initReader(factory,attributeDataSources,sampleSize,separatorsRegExpr,useQuotes,encoding);
}

public FileDataRowReader ( DataRowFactory factory , List < AttributeDataSource > attributeDataSources , double sampleRatio , int sampleSize , String separatorsRegExpr , char [ ] commentChars , boolean useQuotes , char quoteChar , char escapeChar , boolean trimLines , boolean skipErrorLines , Charset encoding , RandomGenerator random ) throws IOException { super ( factory ) ; this . sampleRatio = sampleRatio ; this . maxNumber = sampleSize ; this . attributes = new Attribute [ attributeDataSources . size ( ) ] ; this . dataSourceIndex = new int [ attributeDataSources . size ( ) ] [ 2 ] ; this . rapidMinerLineReader = new RapidMinerLineReader ( separatorsRegExpr , commentChars , useQuotes , quoteChar , escapeChar , trimLines , skipErrorLines ) ; this . random = random ; initReader ( factory , attributeDataSources , sampleSize , separatorsRegExpr , useQuotes , encoding ) ; }
constructs a new filedatarowreader .
