class CsvInputData extends BaseTransformData implements ITransformData {

  byte[] removeEscapedEnclosures( byte[] field, int nrEnclosuresFound ) {
    byte[] result = new byte[ field.length - nrEnclosuresFound ];
    int resultIndex = 0;
    for ( int i = 0; i < field.length; i++ ) {
      result[ resultIndex++ ] = field[ i ];
      if ( field[ i ] == enclosure[ 0 ] && i + 1 < field.length && field[ i + 1 ] == enclosure[ 0 ] ) {
        // Skip the escaped enclosure after adding the first one
        i++;
      }
    }
    return result;
  }

  public  CsvInputData();

}