public OXml() { _compressManager = new CompressManager(new ZipManager()); }
//public UncompressQueueManager() public UncompressQueueManager(CompressBaseManager compressManager) { //_compressManager = new CompressManager(); _compressManager = new CompressManager(compressManager); Start(); }
public static void Test_CompressManager_01(string file, string directory = null, UncompressOptions options = UncompressOptions.None) { Trace.WriteLine("Uncompress file \"{0}\" in \"{1}\"", file, directory); Trace.WriteLine("options {0}", options); CompressManager compressManager = new CompressManager(); UncompressResult result = compressManager.Uncompress(file, directory, options); //Trace.WriteLine("Uncompress files :"); //foreach (string file2 in result.UncompressFiles) // Trace.WriteLine(" \"{0}\"", file2); //Trace.WriteLine("Compress files :"); //foreach (string file2 in result.CompressFiles) // Trace.WriteLine(" \"{0}\"", file2); Trace.WriteLine("result :"); Trace.WriteLine(result.zToJson()); }