public ZipEntryInputStream(BinaryInput in, long position) throws IOException { super(Env.getInstance()); _in = in; _position = position; in.setPosition(_position); ZipInputStream zipInputStream = new ZipInputStream(in.getInputStream()); ZipEntry curEntry = zipInputStream.getNextEntry(); if (curEntry == null) throw new IOException(L.l("ZipEntry at position {0} not found", _position)); init(new ReadStream(new VfsStream(zipInputStream, null))); }
/** Saves the session. */ public void store(OutputStream out, Object obj) throws IOException { SessionArrayValue session = (SessionArrayValue) obj; session.store(Env.getInstance(), out); }