OSDN Git Service

Merged gcj-eclipse branch to trunk.
[pf3gnuchains/gcc-fork.git] / libjava / java / util / zip / ZipFile$PartialInputStream.h
1
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3
4 #ifndef __java_util_zip_ZipFile$PartialInputStream__
5 #define __java_util_zip_ZipFile$PartialInputStream__
6
7 #pragma interface
8
9 #include <java/io/InputStream.h>
10 #include <gcj/array.h>
11
12 extern "Java"
13 {
14   namespace java
15   {
16     namespace nio
17     {
18       namespace charset
19       {
20           class Charset;
21           class CharsetDecoder;
22       }
23     }
24   }
25 }
26
27 class java::util::zip::ZipFile$PartialInputStream : public ::java::io::InputStream
28 {
29
30 public:
31   ZipFile$PartialInputStream(::java::io::RandomAccessFile *, jint);
32 public: // actually package-private
33   void setLength(jlong);
34 private:
35   void fillBuffer();
36 public:
37   jint available();
38   jint read();
39   jint read(JArray< jbyte > *, jint, jint);
40   jlong skip(jlong);
41 public: // actually package-private
42   void seek(jlong);
43   void readFully(JArray< jbyte > *);
44   void readFully(JArray< jbyte > *, jint, jint);
45   jint readLeShort();
46   jint readLeInt();
47 private:
48   ::java::lang::String * decodeChars(JArray< jbyte > *, jint, jint);
49 public: // actually package-private
50   ::java::lang::String * readString(jint);
51 public:
52   void addDummyByte();
53 private:
54   static ::java::nio::charset::Charset * UTF8CHARSET;
55   ::java::nio::charset::CharsetDecoder * __attribute__((aligned(__alignof__( ::java::io::InputStream)))) utf8Decoder;
56   ::java::io::RandomAccessFile * raf;
57   JArray< jbyte > * buffer;
58   jlong bufferOffset;
59   jint pos;
60   jlong end;
61   jint dummyByteCount;
62 public:
63   static ::java::lang::Class class$;
64 };
65
66 #endif // __java_util_zip_ZipFile$PartialInputStream__