2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_io_ObjectInputStream__
5 #define __java_io_ObjectInputStream__
9 #include <java/io/InputStream.h>
10 #include <gcj/array.h>
13 class java::io::ObjectInputStream
: public ::java::io::InputStream
17 ObjectInputStream(::java::io::InputStream
*);
18 virtual ::java::lang::Object
* readObject();
19 virtual ::java::lang::Object
* readUnshared();
21 ::java::lang::Object
* readObject(jboolean
);
22 ::java::lang::Object
* parseContent(jbyte
, jboolean
);
23 void checkTypeConsistency(::java::lang::String
*, JArray
< ::java::io::ObjectStreamField
* > *, JArray
< ::java::io::ObjectStreamField
* > *);
24 public: // actually protected
25 virtual ::java::io::ObjectStreamClass
* readClassDescriptor();
27 virtual void defaultReadObject();
28 virtual void registerValidation(::java::io::ObjectInputValidation
*, jint
);
29 public: // actually protected
30 virtual ::java::lang::Class
* resolveClass(::java::io::ObjectStreamClass
*);
32 ::java::lang::ClassLoader
* currentLoader();
33 ::java::io::ObjectStreamClass
* lookupClass(::java::lang::Class
*);
34 JArray
< ::java::io::ObjectStreamClass
* > * hierarchy(::java::lang::Class
*);
35 public: // actually protected
36 virtual ::java::lang::Object
* resolveObject(::java::lang::Object
*);
37 virtual ::java::lang::Class
* resolveProxyClass(JArray
< ::java::lang::String
* > *);
38 virtual jboolean
enableResolveObject(jboolean
);
39 virtual void readStreamHeader();
42 virtual jint
read(JArray
< jbyte
> *, jint
, jint
);
43 virtual jint
available();
45 virtual jboolean
readBoolean();
46 virtual jbyte
readByte();
47 virtual jint
readUnsignedByte();
48 virtual jshort
readShort();
49 virtual jint
readUnsignedShort();
50 virtual jchar
readChar();
51 virtual jint
readInt();
52 virtual jlong
readLong();
53 virtual jfloat
readFloat();
54 virtual jdouble
readDouble();
55 virtual void readFully(JArray
< jbyte
> *);
56 virtual void readFully(JArray
< jbyte
> *, jint
, jint
);
57 virtual jint
skipBytes(jint
);
58 virtual ::java::lang::String
* readLine();
59 virtual ::java::lang::String
* readUTF();
60 virtual ::java::io::ObjectInputStream$GetField
* readFields();
61 public: // actually protected
63 virtual ::java::lang::Object
* readObjectOverride();
65 jint
assignNewHandle(::java::lang::Object
*, jboolean
);
66 void rememberHandle(::java::lang::Object
*, jboolean
, jint
);
67 ::java::lang::Object
* lookupHandle(jint
);
68 ::java::lang::Object
* processResolution(::java::io::ObjectStreamClass
*, ::java::lang::Object
*, jint
, jboolean
);
71 void readNextBlock(jbyte
);
72 void readArrayElements(::java::lang::Object
*, ::java::lang::Class
*);
73 void readFields(::java::lang::Object
*, ::java::io::ObjectStreamClass
*);
74 jboolean
setBlockDataMode(jboolean
);
75 ::java::lang::Object
* newObject(::java::lang::Class
*, ::java::lang::reflect::Constructor
*);
76 void invokeValidators();
77 void callReadMethod(::java::lang::reflect::Method
*, ::java::lang::Class
*, ::java::lang::Object
*);
78 void dumpElement(::java::lang::String
*);
79 void dumpElementln(::java::lang::String
*);
80 void dumpElementln(::java::lang::String
*, ::java::lang::Object
*);
81 static const jint BUFFER_SIZE
= 1024;
82 ::java::io::DataInputStream
* __attribute__((aligned(__alignof__( ::java::io::InputStream
)))) realInputStream
;
83 ::java::io::DataInputStream
* dataInputStream
;
84 ::java::io::DataInputStream
* blockDataInput
;
85 jint blockDataPosition
;
87 JArray
< jbyte
> * blockData
;
88 jboolean useSubclassMethod
;
90 jboolean resolveEnabled
;
91 ::java::util::Map
* handles
;
92 ::java::lang::Object
* currentObject
;
93 ::java::io::ObjectStreamClass
* currentObjectStreamClass
;
94 ::java::util::TreeSet
* currentObjectValidators
;
95 jboolean readDataFromBlock
;
96 jboolean fieldsAlreadyRead
;
97 ::java::util::Hashtable
* classLookupTable
;
98 ::java::io::ObjectInputStream$GetField
* prereadFields
;
101 static const jboolean DEBUG
= 0;
103 static ::java::lang::Class
class$
;
106 #endif // __java_io_ObjectInputStream__