/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
throws IOException, StreamCorruptedException
{
super(in);
}
final public void defaultReadObject()
{
}
boolean NotImplemented = true;
if (NotImplemented)
throw new IOException("readObjectOverride not implemented");
try {
//Read in class of object to currentDescriptor
try {
//currentObject = Allocate a new instance of the class
} catch (InstantiationException e) {
e.getMessage());
} catch (IllegalAccessException e) {
e.getMessage());
}
//if currentDescriptor.isAssignable(Externalizable.class) {
// Object[] argList = {this};
// InvokeMethod(currentObject, readExternalMethod, argList);
//} else {
// Does currentDescriptor have a readObject method
// if it does
// invokeMethod(this, readObjectMethod, {this});
// else
// defaultReadObject();
//}
// check for replacement on currentObject.
// if toplevel readobject
// doObjectValidations.
} finally {
}
return readResult;
}
throw new Error("not implememted");
}
int prio)
throws NotActiveException, InvalidObjectException {
}
}
}
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
throw new IOException("Not Implemented");
}
}
/**********************************************************/
/**
* Provide access to the persistent fields read from the input stream.
*/
/**
* Get the ObjectStreamClass that describes the fields in the stream.
*/
throw new Error("not implemented");
}
/**
* Return true if the named field is defaulted and has no value
* in this stream.
*/
throws IOException, IllegalArgumentException
{
throw new Error("not implemented");
//ObjectStreamField field = checkField(name, null);
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, IllegalArgumentException {
throw new Error("not implemented");
}
throws IOException, ClassNotFoundException {
}
}
/****************************************************************/
/* CODE LIFTED FROM ObjectStreamClass constuctor.
* ObjectStreamClass.readObjectMethod is private.
*
* Look for the readObject method
* Set the accessible flag on it here. ObjectOutputStream
* will call it as necessary.
*/
try {
int mods = m.getModifiers();
// Method must be private and non-static
m = null;
} else {
m.setAccessible(true);
}
} catch (NoSuchMethodException e) {
m = null;
}
return m;
}
});
return readObjectMethod;
}
/*************************************************************/
/* taken verbatim from ObjectInputStream. */
throws IOException
{
try {
return null;
}
});
if (ex instanceof InvocationTargetException) {
Throwable t =
if (t instanceof IOException)
throw (IOException)t;
else if (t instanceof RuntimeException)
throw (RuntimeException) t;
else if (t instanceof Error)
throw (Error) t;
else
throw new Error("interal error");
} else {
// IllegalAccessException cannot happen
}
}
}
throws SecurityException
{
throw new Error("To be implemented");
}
};