title: How to read complete line without any mapper with spring batch
body: <p>I am learning spring batch, i have basic idea of reader, mapper and writer. Now my current requirement is to read each line from file, compress the data and write in a gigaspace based in-memory grid. </p>
  
  <p>I understand that a line mapper is compulsory attribute for iteam reader. I have no use of created a mapper, all i need to do is read the line and send it to writer to write in the grid. So how can i skip the line mapper or how can i read the plain line. Currently i have done something like this, which doesnot seems to be idead solution.</p>
  
  <pre><code>    public class ShrFileMapper implements FieldSetMapper&lt;SpaceDocument&gt; {
      @Override
      public SpaceDocument mapFieldSet(FieldSet fieldSet) throws BindException {
          String positionId = fieldSet.readString(0);
          StringBuffer line = new StringBuffer();
          for (String fieldValue : fieldSet.getValues()) {
              line.append("\t").append(fieldSet);
          }
  
          // logic for compression
  
          SpaceDocument spaceDocument = new SpaceDocument("shr.doc");
          spaceDocument.setProperty("id", positionId);
          spaceDocument.setProperty("payload", compressedString);
  
          return spaceDocument;
      }
  }
  </code></pre>