Package net.sf.jpluck.test

Source Code of net.sf.jpluck.test.JXLTest

package net.sf.jpluck.test;

import java.io.File;

import net.sf.jpluck.jxl.JXL;

public class JXLTest {

  public static void main(String[] args) throws Exception {
    File file = new File(args[0]);
    String filename = file.getAbsolutePath();
    long before = System.currentTimeMillis();
    JXL jxl = new JXL(file);
    long after = System.currentTimeMillis();
    System.out.println((after-before) + "ms");
    before = System.currentTimeMillis();
    jxl = new JXL(file);
    after = System.currentTimeMillis();
    System.out.println((after-before) + "ms");
    /*filename = filename.replaceAll("\\.jxl", "_new.jxl");
    jxl.save(new File(filename));*/
  }
}
 
TOP

Related Classes of net.sf.jpluck.test.JXLTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.