summaryrefslogtreecommitdiff
path: root/libjava/javax/crypto/CipherInputStream.h
blob: e4c16e173750736c007922a4eb27cb7f460f9f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_crypto_CipherInputStream__
#define __javax_crypto_CipherInputStream__

#pragma interface

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

extern "Java"
{
  namespace javax
  {
    namespace crypto
    {
        class Cipher;
        class CipherInputStream;
    }
  }
}

class javax::crypto::CipherInputStream : public ::java::io::FilterInputStream
{

public:
  CipherInputStream(::java::io::InputStream *, ::javax::crypto::Cipher *);
public: // actually protected
  CipherInputStream(::java::io::InputStream *);
public:
  virtual jint available();
  virtual void close();
  virtual jint read();
  virtual jint read(JArray< jbyte > *, jint, jint);
  virtual jint read(JArray< jbyte > *);
  virtual jlong skip(jlong);
  virtual jboolean markSupported();
  virtual void mark(jint);
  virtual void reset();
private:
  void nextBlock();
  static ::java::util::logging::Logger * logger;
  ::javax::crypto::Cipher * __attribute__((aligned(__alignof__( ::java::io::FilterInputStream)))) cipher;
  JArray< jbyte > * outBuffer;
  jint outOffset;
  jboolean isStream;
  jboolean eof;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_crypto_CipherInputStream__