 
 class __CorrectedStream extends Readable
 
-  constructor: (@contentStream, @eolc)->
+  constructor: (@contentStream, @eolc, @providedEncoding = 'utf8')->
     super()
 
     hasEneded = false

      return cbfn null, wasAltered, output
  
  @correctStream: (contentStream, optionMap)->
    { eolc } = LineEndingCorrector.__extractOptions optionMap
    return new LineEndingCorrector.__CorrectedStream contentStream, eolc


    

@LineEndingCorrector = LineEndingCorrector

      @contentStream.on 'data', (chunk)=>
        unless hasEneded
          [ _, chunk] = LineEndingCorrector.__correct chunk, @eolc
          @push chunk, @providedEncoding

      @contentStream.on 'end', =>
        unless hasEneded
          @push null
        hasEneded = true

    @setEncoding @providedEncoding

  _read: (n)=> null


class LineEndingCorrector
  
