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