Logged In: NO

ZipInputStream zis = new ZipInputStream(someinputstream);

InputStream inputProxy = new FilterInputStream(zis) {
public void close() throws IOException {
System.err.println("!!! proxy input stream close() !!!!!!");
//zis.close();
}
};

ZipEntry ze = zis.getNextEntry();

JAXBContext jc1 = JAXBContext.newInstance("test.MyRoot1");
Unmarshaller reader1 = jc.createUnmarshaller();
reader1.setValidating(true);
Object root1 = reader1.unmarshal(inputProxy); //inputProxy
will get closed here

JAXBContext jc2 = JAXBContext.newInstance("test.MyRoot2");
Unmarshaller reader2 = jc.createUnmarshaller();
reader2.setValidating(true);
Object root2 = reader2.unmarshal(inputProxy); //inputProxy
will get closed here

zis.closeEntry();
zis.close();