if (ois instanceof BufferedInputStream) is = (BufferedInputStream)ois; else is = new BufferedInputStream(ois);
is.close();
return is.read();