Examples of CountingCacheHandler


Examples of isi.pasco2.handler.CountingCacheHandler

        String fileName = line.getArgs()[0];
       
        try {
          IndexFile fr = new FastReadIndexFile(fileName, "r");
          CountingCacheHandler handler = null;
         
          if (fileType == null) {
            handler = new CountingCacheHandler();
          }
          if (fileType == null) {
            handler = new CountingCacheHandler();
          } else if (fileType.equals("cache")) {
            handler = new CountingCacheHandler();
          } else if (fileType.equals("history")) {
            handler = new Pasco2HistoryHandler();
          }
         
          if (format != null) {
            if (format.equals("pasco")) {
              DateFormat regularDateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSS");
              handler.setDateFormat(regularDateFormat);
              TimeZone tz = TimeZone.getTimeZone("Australia/Brisbane");
              regularDateFormat.setTimeZone(tz);
             
            } else if (format.equals("standard")) {
              DateFormat xsdDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
              handler.setDateFormat(xsdDateFormat);    
              xsdDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
            } else {
              System.err.println("Format not supported.");
              HelpFormatter formatter = new HelpFormatter();
              formatter.printHelp( "pasco2", options );
              System.exit(1);
            }
          }
         
          if (delimeter != null) {
            handler.setDelimeter(delimeter);
          }
         
          IEIndexFileParser logparser = null;
          if (fileType == null) {
            System.err.println("Using cache file parser.");
View Full Code Here

Examples of isi.pasco2.handler.CountingCacheHandler

  public void testHistoryFile() {
    try {
      String f = "D:\\Documents and Settings\\bschatz\\Local Settings\\History\\History.IE5\\index.dat";
      IndexFile fr = new FastReadIndexFile(f, "r");
      CountingCacheHandler handler = new CountingCacheHandler();
      IEHistoryFileParser parser = new IEHistoryFileParser(f, fr);
     
      int allocatorBitMapOffset = 0x250;
      int bitMapIndex = 0;
      int storageStart = 0x4000;
View Full Code Here

Examples of isi.pasco2.handler.CountingCacheHandler

  public void testCacheFile() {
    try {
      String f = "D:\\mysrc\\squidbro\\IFIP2006\\anon\\source\\minnow.willk.content.index.dat";
      IndexFile fr = new FastReadIndexFile(f, "r");
      CountingCacheHandler handler = new CountingCacheHandler();
      IEHistoryFileParser parser = new IEHistoryFileParser(f, fr);
     
      int allocatorBitMapOffset = 0x250;
      int bitMapIndex = 0;
      int storageStart = 0x5000;
View Full Code Here
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.