CompressReceiver.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:0k
- package com.company.command;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class CompressReceiver implements IReceiver {
- //执行gzip压缩命令
- public boolean gzipExec(String source, String to) {
- System.out.println(source + " --> " +to + " GZIP压缩成功!");
- return true;
- }
- //执行zip压缩命令
- public boolean zipExec(String source, String to) {
- System.out.println(source + " --> " +to + " ZIP压缩成功!");
- return true;
- }
- }