/** * Main method for testing this class */ public static void main(String [] args) { try { File testF = new File(new File(System.getProperty("user.dir")), "testOut.zip"); OutputZipper oz = new OutputZipper(testF); /* OutputZipper oz = new OutputZipper( new File(System.getProperty("user.dir"))); */ oz.zipit("Here is some test text to be zipped","testzip"); oz.zipit("Here is a second entry to be zipped","testzip2"); oz.finished(); } catch (Exception ex) { ex.printStackTrace(); System.err.println(ex.getMessage()); } } }
/** * Main method for testing this class */ public static void main(String [] args) { try { File testF = new File(new File(System.getProperty("user.dir")), "testOut.zip"); OutputZipper oz = new OutputZipper(testF); /* OutputZipper oz = new OutputZipper( new File(System.getProperty("user.dir"))); */ oz.zipit("Here is some test text to be zipped","testzip"); oz.zipit("Here is a second entry to be zipped","testzip2"); oz.finished(); } catch (Exception ex) { ex.printStackTrace(); System.err.println(ex.getMessage()); } } }
m_ZipDest = new OutputZipper(m_OutputFile);
m_ZipDest = new OutputZipper(m_OutputFile);
m_ZipDest = new OutputZipper(m_OutputFile);
m_ZipDest = new OutputZipper(m_OutputFile);
if (getRawOutput()) { if (m_ZipDest == null) { m_ZipDest = new OutputZipper(m_OutputFile);
if (getRawOutput()) { if (m_ZipDest == null) { m_ZipDest = new OutputZipper(m_OutputFile);
m_ZipDest = new OutputZipper(m_OutputFile);
m_ZipDest = new OutputZipper(m_OutputFile);