#ifndef _nsCLABCMSEncoder_h_
#define _nsCLABCMSEncoder_h_

#include "nsICLABCMSEncoder.h"
#include "nsCOMPtr.h"
#include "nsICMSEncoder.h"
#include "nsIOutputStream.h"

class nsCLABCMSEncoder : public nsICLABCMSEncoder
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICLABCMSENCODER

  nsCLABCMSEncoder();
  virtual ~nsCLABCMSEncoder();
  /* additional members */
  void Eat(const char *buf,unsigned long len);
 private:
  unsigned char *s;
  unsigned long p;
  nsCOMPtr<nsICMSEncoder> enc;
  nsCOMPtr<nsIOutputStream> output;
  nsresult eating_ns_error;
  int eating_error;
};


#endif
