2 Replies Latest reply: May 13, 2013 9:30 AM by 846189 RSS

    FileHelper_Impl

    846189
      I am trying to invoke FileHelper_Impl()

      I created a new class which extends ColumnDelimitedRecord() and specified the number of columns as 1.

      Now how can I populate the data for that Column?
        • 1. Re: FileHelper_Impl
          827912
          Try this..

          private static final int NBR_OF_COLUMNS = 1;
          //This code writes the fileline into a file

          this.fileLine="Testing Writer";
          FileLineColumn data = new FileLineColumn();
                    data.setValue(this.fileLine);
                    this.filehelper.write(data);           
                    this.filehelper.close();



          class FileLineColumn extends ColumnDelimitedRecord
               {
                    public FileLineColumn()
                    {
                         super(NBR_OF_COLUMNS);
                    }

                    public void setValue(String value)
                    {
                         rightPadColumn(1, 5000, value);
                    }
               }



          Regards
          shanker

          Edited by: shanker on May 13, 2013 12:42 AM
          • 2. Re: FileHelper_Impl
            846189
            Is the class FileLineColumn already existing.

            I am trying to do this in an algorithm and it is not able to find FileLineColumn.