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 InputStream newBZip2InputStream(InputStream bis) throws IOException;
20 public Object getZipFileDirectory(BufferedInputStream bis,
21 String[] subFileList, int listPtr, boolean asBufferedInputStream);
23 public String[] getZipDirectoryAndClose(BufferedInputStream t,
26 public void getAllZipData(InputStream bis, String[] subFileList,
27 String replace, String binaryFileList, String exclude,
28 Map<String, String> fileData);
30 public Object getZipFileContentsAsBytes(BufferedInputStream bis,
31 String[] subFileList, int i);
33 public void addZipEntry(Object zos, String fileName) throws IOException;
35 public void closeZipEntry(Object zos) throws IOException;
37 public Object getZipOutputStream(Object bos);
39 public int getCrcValue(byte[] bytes);
41 public void readFileAsMap(BufferedInputStream is, Map<String, Object> bdata, String name);
43 public String cacheZipContents(BufferedInputStream bis, String shortName,
44 Map<String, Object> cache, boolean asByteArray);
46 BufferedInputStream getUnGzippedInputStream(byte[] bytes);