Permalink
Browse files

清理无用代码

  • Loading branch information...
1 parent 74cd607 commit cdd6f1334fc056eabaae3a4f77570a991e3f8e4e @moorefu committed Apr 19, 2012
Showing with 0 additions and 37 deletions.
  1. +0 −37 src/main/java/com/icsshs/sandbox/CompressDatastr.java
@@ -1,37 +0,0 @@
-package com.icsshs.sandbox;
-
-import java.io.IOException;
-import java.sql.SQLException;
-
-import com.google.inject.Inject;
-import com.icsshs.datatransfer.core.Data;
-import com.icsshs.datatransfer.database.DataBaseOperator;
-import com.icsshs.datatransfer.helper.compress.Compress;
-import com.icsshs.datatransfer.helper.injector.InjectorHelper;
-
-public class CompressDatastr {
- private DataBaseOperator dataBaseOperator;
- private Compress compress;
-
- public void compress() throws SQLException, IOException {
- Data data = dataBaseOperator.queryRowBean("select * from DT_DATA t where table_name ='CM_PARAM'", Data.class);
- String datastr = data.getDataStr();
- byte[] datastrbytes = datastr.getBytes();
- byte[] compressed =compress.compress(datastrbytes);
- System.out.println(datastrbytes.length);
- System.out.println(compressed.length);
- }
-
- @Inject
- public CompressDatastr(DataBaseOperator dataBaseOperator, Compress compress) {
- super();
- this.dataBaseOperator = dataBaseOperator;
- this.compress = compress;
- }
-
- public static void main(String[] args) throws SQLException, IOException {
- CompressDatastr compressDatastr = InjectorHelper.getInstance(CompressDatastr.class);
- compressDatastr.compress();
- }
-
-}

0 comments on commit cdd6f13

Please sign in to comment.