3 import java.io.BufferedInputStream;
\r
4 import java.io.IOException;
\r
5 import java.io.InputStream;
\r
7 import java.util.Map;
\r
10 public interface GenericZipTools {
\r
12 public ZInputStream newZipInputStream(InputStream is);
\r
14 public String getZipDirectoryAsStringAndClose(BufferedInputStream t);
\r
16 public InputStream newGZIPInputStream(InputStream bis) throws IOException;
\r
18 public Object getZipFileDirectory(BufferedInputStream bis,
\r
19 String[] subFileList, int listPtr, boolean asBufferedInputStream);
\r
21 public String[] getZipDirectoryAndClose(BufferedInputStream t,
\r
24 public void getAllZipData(InputStream bis, String[] subFileList,
\r
25 String replace, String string,
\r
26 Map<String, String> fileData);
\r
28 public Object getZipFileContentsAsBytes(BufferedInputStream bis,
\r
29 String[] subFileList, int i);
\r
31 public void addZipEntry(Object zos, String fileName) throws IOException;
\r
33 public void closeZipEntry(Object zos) throws IOException;
\r
35 public Object getZipOutputStream(Object bos);
\r
37 public int getCrcValue(byte[] bytes);
\r
39 public void readFileAsMap(BufferedInputStream is, Map<String, Object> bdata, String name);
\r
41 public String cacheZipContents(BufferedInputStream bis, String shortName,
\r
42 Map<String, Object> cache, boolean asByteArray);
\r
44 BufferedInputStream getUnGzippedInputStream(byte[] bytes);
\r