// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_net_ssl_provider_DigestInputStream__
#define __gnu_javax_net_ssl_provider_DigestInputStream__

#pragma interface

#include <java/io/FilterInputStream.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace javax
    {
      namespace net
      {
        namespace ssl
        {
          namespace provider
          {
            class DigestInputStream;
          }
        }
      }
    }
    namespace java
    {
      namespace security
      {
        namespace hash
        {
          class IMessageDigest;
        }
      }
    }
  }
}

class gnu::javax::net::ssl::provider::DigestInputStream : public ::java::io::FilterInputStream
{
public: // actually package-private
  DigestInputStream (::java::io::InputStream *, ::gnu::java::security::hash::IMessageDigest *, ::gnu::java::security::hash::IMessageDigest *);
  virtual void setDigesting (jboolean);
public:
  virtual jint read ();
  virtual jint read (jbyteArray);
  virtual jint read (jbyteArray, jint, jint);
private:
  ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::io::FilterInputStream )))) md5;
  ::gnu::java::security::hash::IMessageDigest *sha;
  jboolean digesting;
public:

  static ::java::lang::Class class$;
};

#endif /* __gnu_javax_net_ssl_provider_DigestInputStream__ */
