text: // Copyright (c) 2012 Plenluno All rights reserved.
  
  #ifndef LIBNODE_STRING_DECODER_H_
  #define LIBNODE_STRING_DECODER_H_
  
  #include <libnode/buffer.h>
  
  namespace libj {
  namespace node {
  
  class StringDecoder : LIBJ_JS_OBJECT(StringDecoder)
   public:
      static Ptr create(Buffer::Encoding enc = Buffer::UTF8);
  
      virtual Buffer::Encoding encoding() const = 0;
  
      virtual String::CPtr write(Buffer::CPtr buf) const = 0;
  };
  
  }  // namespace node
  }  // namespace libj
  
  #endif  // LIBNODE_STRING_DECODER_H_
  