List of usage examples for java.text ParseException getMessage
public String getMessage()
From source file:edu.lternet.pasta.client.EmlUtility.java
/** * @param args String array with three arguments: * arg[0] absolute path to the input XML file * arg[1] absolute path to the output HTML file * arg[2] absolute path to the EML XSLT stylesheet *///from w w w. j a va2 s . c om public static void main(String[] args) { String inputPath = args[0]; String outputPath = args[1]; String emlXslPath = args[2]; ConfigurationListener.configure(); File inFile = new File(inputPath); File outFile = new File(outputPath); String eml = null; try { eml = FileUtils.readFileToString(inFile); } catch (IOException e1) { logger.error(e1.getMessage()); e1.printStackTrace(); } EmlUtility eu = null; try { eu = new EmlUtility(eml); } catch (ParseException e) { logger.error(e.getMessage()); e.printStackTrace(); } String html = eu.xmlToHtml(emlXslPath, null); try { FileUtils.writeStringToFile(outFile, html); } catch (IOException e) { logger.error(e.getMessage()); e.printStackTrace(); } }
From source file:net.sourceforge.users.dragomerlin.vcs2icsCalendarConverter.Main.java
public static void main(String[] args) throws IOException { // TODO: separate this into other method, in case we want to create a GUI later // TODO: give the user the choice, if export to single or multifile // TODO: write tests String email = null;/*w ww. j a v a2 s. c o m*/ System.out.println("VCS to ICS calendar converter v" + Main.class.getPackage().getImplementationVersion()); System.out.println("Working directory: " + System.getProperty("user.dir")); // Check whether Java has some bug causing bad quoted printable decoding // for non encoded characters String original_seq = "Steuererklr"; String decoded_seq = ConvertSingleFile.decode(original_seq); if (original_seq.contentEquals(decoded_seq)) System.out.println("org.apache.commons.codec.net.QuotedPrintableCodec.decodeQuotedPrintable\n" + " seems working ok on your system!\n"); else System.out.println("\nWARNING:\n" + " org.apache.commons.codec.net.QuotedPrintableCodec.decodeQuotedPrintable\n" + " is not working properly on your system! Probably this is caused by a bug in Java.\n" + " Try using a diferent operating system or your resulting files may contain errors.\n"); File workingdir = new File(System.getProperty("user.dir")); File dir_vcs = new File(System.getProperty("user.dir") + File.separator + "vcs" + File.separator); File dir_ics = new File(System.getProperty("user.dir") + File.separator + "ics" + File.separator); // Check if there are arguments for the jar file, and if there are, if // the first one // equals "--email" or "-e" and the second is somewhat valid, use it as // email. // If "--email" or "-e" was given but the following argument is missing // just don't ask any more. // Spaces are trimmed by the input automatically. // NOTE: Is a bad idea start reading the first argument first. // Instead start reading first the last argument to catch excepctions // and go down one by one. if (args.length > 0) { if ("-e".equals(args[0]) || "--email".equals(args[0])) { if (args.length > 1) { email = args[1]; } } else { System.out.println("Invalid parameter: " + args[0]); System.out.println("Usage: java -jar calconv.jar [(-e | --email) email]"); email = readEmail(); } } else { email = readEmail(); } // Check if VCS directory exists and is readable, create ICS dir if // needed and check that is writable. if (!dir_vcs.exists()) System.out.println("The vcs directory doesn't exist. Create it and put into it the calendar files"); if (!dir_vcs.canRead()) System.out.println("The vcs directory is not readable"); if (!workingdir.canWrite()) System.out.println("The working dir is write protected. You can't write in this folder"); if (!dir_ics.exists() && workingdir.canWrite()) dir_ics.mkdir(); if (!dir_ics.exists() || !dir_ics.canWrite()) System.out.print("The ics dir does not exist or is not writable"); if (dir_vcs.exists() && dir_vcs.canRead() && dir_ics.exists() && dir_ics.canWrite()) { File[] list = dir_vcs.listFiles(); // TODO use filenamefilter int vcs_counter = 0; ICSWriter icsWriter; if (true) { // TODO let user decide if single or multifile icsWriter = new ICSWriter(email); } for (int i = 0; i < list.length; i++) { if (list[i].isDirectory() && !list[i].isFile()) { // Check that is directory System.out.println("\"" + list[i].getName() + "\"" + " not valid, is a directory" + System.getProperty("line.separator")); } else if (!list[i].getName().toLowerCase().endsWith(".vcs")) System.out.println("\"" + list[i].getName() + "\"" + " not valid file, is not VCS" + System.getProperty("line.separator")); else { vcs_counter++; System.out.println("Found file: " + list[i].getAbsolutePath()); // Start conversion here int numchars = list[i].getName().length(); numchars = numchars - 4; // Remove .vcs from filenames File outFile = new File(dir_ics.toString() + File.separator + list[i].getName().toString().substring(0, numchars) + ".ics"); try { if (false) { // TODO let user decide if single or multifile icsWriter = new ICSWriter(email); } ConvertSingleFile.convert(list[i], email, icsWriter); if (false) { // TODO let user decide if single or multifile String contents = icsWriter.write(outFile); } } catch (ParseException pe) { System.out.println("Could not parse file " + list[i] + "Message was " + pe.getMessage()); } // fileconverter.filetoUTF8(outFile); } } if (true) { // TODO let user decide if single or multifile icsWriter.write(new File(dir_ics.toString() + File.separator + "Result.ics")); } System.out.println("Found " + vcs_counter + " valid files"); // System.out.println(java.nio.charset.Charset.defaultCharset().name()); } }
From source file:org.dspace.eperson.LoadLastLogin.java
public static void main(String[] argv) throws IOException, SQLException, AuthorizeException { final String USAGE = "LoadLastLogin [options] path...path\n\n" + "'path's are paths to DSpace log files"; final String loginRE = "([0-9-]+) ([0-9:]+)[^@]+@ " // Date(1), time(2), goop + "([^:]+):" // user(3) + "session_id=[^:]+:" + "ip_addr=[0-9a-f.:]+:" + "login:type=(implicit|explicit)"; // Handle options, if any Options options = new Options(); options.addOption("h", "help", false, "Explain options"); options.addOption("p", "pretend", false, "Output TSV instead of updating database"); options.addOption("v", "verbose", false, "Talk more about what we are doing"); PosixParser parser = new PosixParser(); CommandLine command = null;/*from w w w. j a v a2s .c om*/ try { command = parser.parse(options, argv); } catch (org.apache.commons.cli.ParseException ex) { System.err.println(ex.getMessage()); if (!(ex instanceof MissingOptionException)) new HelpFormatter().printHelp(USAGE, options); System.exit(1); } if (command.hasOption('h')) { System.out.println("Load users' last_active dates into the database from DSpace logs."); System.out.println(); new HelpFormatter().printHelp(USAGE, options); System.exit(0); } final boolean VERBOSE = command.hasOption('v'); final boolean PRETEND = command.hasOption('p'); String[] args = command.getArgs(); // Set up a "table" that can overflow to storage final Properties rmProps = new Properties(); rmProps.put(RecordManagerOptions.DISABLE_TRANSACTIONS, "true"); String dbname = new File(System.getProperty("java.io.tmpdir"), "lastlogindb").getCanonicalPath(); if (VERBOSE) System.out.println("dbname: " + dbname); RecordManager stamps = RecordManagerFactory.createRecordManager(dbname, rmProps); BTree stampDb = BTree.createInstance(stamps, new StringComparator()); // Scan log files looking for login records final Pattern loginCracker = Pattern.compile(loginRE); final SimpleDateFormat dateEncoder = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); for (String logName : args) { BufferedReader logReader = new BufferedReader(new FileReader(logName)); while (true) { String line = logReader.readLine(); // End of file? if (null == line) break; // Skip if definitely not a login record if (!line.contains(":login:")) continue; // Try to recognize the interesting fields Matcher loginMatcher = loginCracker.matcher(line); if (!loginMatcher.matches()) continue; // Pretty sure we have a login String date = loginMatcher.group(1); String time = loginMatcher.group(2); String user = loginMatcher.group(3); String logDateTime = date + ' ' + time; Date stamp; try { stamp = dateEncoder.parse(logDateTime); } catch (ParseException ex) { System.err.println("Skipping log record: " + ex.getMessage()); continue; } Date previous = (Date) stampDb.find(user); if (null == previous || stamp.after(previous)) { stampDb.insert(user, stamp, true); // Record this user's newest login so far } } logReader.close(); } // Now walk the cache and update EPersons TupleBrowser walker = stampDb.browse(); Tuple stamp = new Tuple(); Context ctx = new Context(); ctx.turnOffAuthorisationSystem(); EPersonService ePersonService = EPersonServiceFactory.getInstance().getEPersonService(); while (walker.getNext(stamp)) { // Update an EPerson's last login String name = (String) stamp.getKey(); Date date = (Date) stamp.getValue(); EPerson ePerson; ePerson = ePersonService.findByEmail(ctx, name); if (null == ePerson) ePerson = ePersonService.findByNetid(ctx, name); if (null == ePerson) { System.err.println("Skipping unknown user: " + name); continue; } Date previous = ePerson.getLastActive(); if ((null == previous) || date.after(previous)) { if (PRETEND) { System.out.printf("%s\t%s\t%s\t%s\t%s\n", ePerson.getID().toString(), date, ePerson.getEmail(), ePerson.getNetid(), ePerson.getFullName()); } else { ePerson.setLastActive(date); ePersonService.update(ctx, ePerson); } } } ctx.complete(); stamps.close(); // Clean up external data and index files, if any File target; target = new File(dbname + ".db"); if (target.exists()) target.delete(); target = new File(dbname + ".lg"); if (target.exists()) target.delete(); }
From source file:fi.uta.infim.usaproxyreportgenerator.App.java
/** * Entry point.//from w ww.jav a 2 s . c om * @param args command line arguments */ public static void main(String[] args) { printLicense(); System.out.println(); try { // Command line arguments cli = parser.parse(cliOptions, args); } catch (org.apache.commons.cli.ParseException e) { System.err.println(e.getMessage()); printHelp(); return; } File outputDir; // Use CWD if output dir is not supplied outputDir = new File(cli.getOptionValue("outputDir", ".")); // Set up the browsing data provider that mines the log entries for // visualizable data. setupDataProvider(); // Output CLI options, so that the user sees what is happening System.out.println("Output directory: " + outputDir.getAbsolutePath()); System.out.println("Data provider class: " + dataProviderClass.getCanonicalName()); UsaProxyLogParser parser = new UsaProxyLogParser(); UsaProxyLog log; try { String filenames[] = cli.getArgs(); if (filenames.length == 0) { throw new IndexOutOfBoundsException(); } // Interpret remaining cli args as file names System.out.print("Parsing log file... "); log = parser.parseFilesByName(Arrays.asList(filenames)); System.out.println("done."); } catch (IOException ioe) { System.err.println("Error opening log file: " + ioe.getMessage()); printHelp(); return; } catch (ParseException pe) { System.err.println("Error parsing log file."); printHelp(); return; } catch (IndexOutOfBoundsException e) { System.err.println("Please supply a file name."); printHelp(); return; } catch (NoSuchElementException e) { System.err.println("Error opening log file: " + e.getMessage()); printHelp(); return; } setupJsonConfig(); // Set up JSON processors // Iterate over sessions and generate a report for each one. for (UsaProxySession s : log.getSessions()) { System.out.print("Generating report for session " + s.getSessionID() + "... "); try { generateHTMLReport(s, outputDir); System.out.println("done."); } catch (IOException e) { System.err.println( "I/O error generating report for session id " + s.getSessionID() + ": " + e.getMessage()); System.err.println("Skipping."); } catch (TemplateException e) { System.err.println( "Error populating template for session id " + s.getSessionID() + ": " + e.getMessage()); System.err.println("Skipping."); } } }
From source file:edu.ku.brc.specify.config.DateConverter.java
/** * @param args//from www . j av a2 s . c o m */ public static void main(String[] args) { // TODO Auto-generated method stub DateConverter dc = new DateConverter(); try { System.out.println(dc.convert("12/07/2007").getTime().toString()); System.out.println(dc.convert("3/21/2006").getTime().toString()); System.out.println(dc.convert("12 07 2007").getTime().toString()); System.out.println(dc.convert("3/22/2004").getTime().toString()); System.out.println(dc.convert("12-07-2007").getTime().toString()); System.out.println(dc.convert("5.21.1999").getTime().toString()); System.out.println(dc.convert("9/15/04").getTime().toString()); System.out.println(dc.convert("11-1-07").getTime().toString()); System.out.println(dc.convert("5.21.00").getTime().toString()); System.out.println(dc.convert("3/12/2004").getTime().toString()); System.out.println(dc.convert("12-07-2007").getTime().toString()); System.out.println(dc.convert("5.42.1999").getTime().toString()); } catch (ParseException pe) { System.out.println(pe.getMessage()); } }
From source file:ctlogger.CTlogger.java
public static void main(String args[]) { /**//from w w w . jav a 2 s . co m * * Original code for command line parsing * (This has been replaced by code using Apache Commons CLI, see below) * String helpMsg = "CTlogger -x -r -z -g -k <skiplines> -f <flush_sec> -p <poll_sec> -n <nanVal> -i <leadingID> -s <SourceName> -H <HeaderLine> <logger.dat> <CTfolder>"; int dirArg = 0; while((dirArg<args.length) && args[dirArg].startsWith("-")) { // arg parsing if(args[dirArg].equals("-h")) { System.err.println(helpMsg); System.exit(0); } if(args[dirArg].equals("-x")) { debug = true; } if(args[dirArg].equals("-b")) { noBackwards = true; } if(args[dirArg].equals("-g")) { gzipmode = true; } // default false if(args[dirArg].equals("-a")) { appendMode = false; } // default true if(args[dirArg].equals("-z")) { zipmode = false; } // default true if(args[dirArg].equals("-N")) { newFileMode = true; } // default false if(args[dirArg].equals("-f")) { autoflush = Long.parseLong(args[++dirArg]); } if(args[dirArg].equals("-p")) { pollInterval = Long.parseLong(args[++dirArg]); } if(args[dirArg].equals("-k")) { skipLines = Long.parseLong(args[++dirArg]); } if(args[dirArg].equals("-r")) { repeatFetch = true; } if(args[dirArg].equals("-B")) { blockMode = true; } if(args[dirArg].equals("-t")) { storeTime = true; } if(args[dirArg].equals("-T")) { trimTime = Double.parseDouble(args[++dirArg]); } if(args[dirArg].equals("-n")) { nanVal = args[++dirArg]; } if(args[dirArg].equals("-i")) { leadingID = args[++dirArg]; } if(args[dirArg].equals("-s")) { SourceName = args[++dirArg]; } if(args[dirArg].equals("-H")) { HeaderLine = args[++dirArg]; } dirArg++; } if(args.length < (dirArg+2)) { System.err.println(helpMsg); System.exit(0); } loggerFileName = args[dirArg++]; // args[0]: logger.dat file CTrootfolder = args[dirArg++]; // args[1]: CT destination folder */ // // Parse command line arguments // // 1. Setup command line options // Options options = new Options(); // Boolean options (only the flag, no argument) options.addOption("h", "help", false, "Print this message"); options.addOption("x", "debug", false, "turn on debug output"); options.addOption("b", "nobackwards", false, "no backwards-going time allowed"); options.addOption("g", "gzipmode", false, "turn on gzip for extra compression"); options.addOption("a", "noappend", false, "turn off append mode (i.e., do not append to end of existing CT data)"); options.addOption("z", "nozip", false, "turn off zip mode (it is on by default)"); options.addOption("N", "newfilemode", false, "re-parse entire logger file every time it is checked"); options.addOption("r", "repeatFetch", false, "turn on repeat fetch (auto-fetch data loop)"); options.addOption("B", "blockMode", false, "turn on CloudTurbine writer block mode (multiple points per output data file, packed data)"); options.addOption("t", "storeTime", false, "store time string as a channel; time is the first data entry in each line; if this option is not specified, then the time channel is skipped/not saved to CloudTurbine"); // Options with an argument Option outputFolderOption = Option.builder("f").argName("autoflush").hasArg() .desc("flush interval (sec); default = \"" + autoflush + "\"").build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("p").argName("pollInterval").hasArg().desc( "if repeatFetch option has been specified, recheck the logger data file at this polling interval (sec); default = \"" + pollInterval + "\"") .build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("k").argName("skipLines").hasArg().desc( "in logger file, the num lines to skip after the header line to get to the first line of data; default = \"" + skipLines + "\"") .build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("T").argName("trimTime").hasArg().desc( "trim (ring-buffer loop) time (sec) (trimTime=0 for indefinite); default = \"" + trimTime + "\"") .build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("n").argName("nanVal").hasArg() .desc("replace NAN with this; default = \"" + nanVal + "\"").build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("i").argName("leadingID").hasArg() .desc("leading ID string (IWG1 compliant)").build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("s").argName("sourceName").hasArg() .desc("CloudTurbine source name; default = \"" + SourceName + "\"").build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("H").argName("HeaderLine").hasArg().desc( "optional CSV list of channel names; if not supplied, this is read from the first line in the logger file") .build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("l").argName("loggerfilename").hasArg() .desc("name of the logger data file; required argument").build(); options.addOption(outputFolderOption); outputFolderOption = Option.builder("o").longOpt("outputfolder").argName("folder").hasArg() .desc("Location of output files (source is created under this folder); default = " + CTrootfolder) .build(); options.addOption(outputFolderOption); // // 2. Parse command line options // CommandLineParser parser = new DefaultParser(); CommandLine line = null; try { line = parser.parse(options, args); } catch (org.apache.commons.cli.ParseException exp) { // oops, something went wrong System.err.println("Command line argument parsing failed: " + exp.getMessage()); return; } // // 3. Retrieve the command line values // if (line.hasOption("help")) { // Display help message and quit HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("CTlogger", options); return; } debug = line.hasOption("x"); noBackwards = line.hasOption("b"); gzipmode = line.hasOption("g"); appendMode = !line.hasOption("a"); zipmode = !line.hasOption("z"); newFileMode = line.hasOption("N"); repeatFetch = line.hasOption("r"); blockMode = line.hasOption("B"); storeTime = line.hasOption("t"); autoflush = Long.parseLong(line.getOptionValue("f", Long.toString(autoflush))); pollInterval = Long.parseLong(line.getOptionValue("p", Long.toString(pollInterval))); skipLines = Long.parseLong(line.getOptionValue("k", Long.toString(skipLines))); trimTime = Double.parseDouble(line.getOptionValue("T", Double.toString(trimTime))); nanVal = line.getOptionValue("n", nanVal); if (line.hasOption("i")) { leadingID = line.getOptionValue("i"); } SourceName = line.getOptionValue("s", SourceName); if (line.hasOption("H")) { HeaderLine = line.getOptionValue("H"); } if (line.hasOption("l")) { loggerFileName = line.getOptionValue("l"); } else { System.err.println("ERROR: you must supply the logger file name."); return; } CTrootfolder = line.getOptionValue("o", CTrootfolder); if (!debug) { System.err.println("CTlogger: " + loggerFileName + ", CTrootfolder: " + CTrootfolder + ", pollInterval: " + pollInterval); } else { System.err.println("debug = " + debug); System.err.println("noBackwards = " + noBackwards); System.err.println("gzipmode = " + gzipmode); System.err.println("appendMode = " + appendMode); System.err.println("zipmode = " + zipmode); System.err.println("newFileMode = " + newFileMode); System.err.println("repeatFetch = " + repeatFetch); System.err.println("blockMode = " + blockMode); System.err.println("storeTime = " + storeTime); System.err.println("autoflush = " + autoflush); System.err.println("pollInterval = " + pollInterval); System.err.println("skipLines = " + skipLines); System.err.println("trimTime = " + trimTime); System.err.println("nanVal = " + nanVal); System.err.println("leadingID = " + leadingID); System.err.println("SourceName = " + SourceName); System.err.println("HeaderLine = " + HeaderLine); System.err.println("loggerFileName = " + loggerFileName); System.err.println("CTrootfolder = " + CTrootfolder); } // // Run CTlogger // if (!repeatFetch) getData(true); // run once else { Timer timer = new Timer(); TimerTask fetchTask = new TimerTask() { @Override public void run() { if (newFileMode) getData(true); else if (getData(false)) { // pick up from old data if you can System.err.println("Failed to pick up from old data, refetch from start of file..."); boolean status = getData(true); System.err.println("refetch status: " + status); } if (debug) System.err.println("Waiting for data, pollInterval: " + pollInterval + " sec..."); }; }; // repeatFetch@autoflush interval, convert to msec if ((autoflush > 0) && (pollInterval > autoflush)) pollInterval = autoflush; timer.scheduleAtFixedRate(fetchTask, 0, pollInterval * 1000); } }
From source file:edu.hawaii.soest.kilonalu.ctd.CTDConverter.java
/** * The main method//from w ww.j a v a 2 s .c o m */ public static void main(String[] args) { String file = "* Sea-Bird SBE19plus Data File:\r\n" + "* FileName = sh__0002.hex\r\n" + "* Software Version \r\n" + "* Temperature SN = 5251\r\n" + "* Conductivity SN = 5251\r\n" + "* System UpLoad Time = Sep 23 2009 11:29:01\r\n" + "** Cruise: Sea Engineering C&C Project\r\n" + "** Station: Kilo Nalu, 20meter[D[D[D[D[D meter site \r\n" + "** Ship: Huki Pau, Sea Engineering\r\n" + "** Chief_Scientist: McManus\r\n" + "** Organization: UH\r\n" + "** Area_of_Operation: Offshore Kewalo Basin\r\n" + "** Package: SH2\r\n" + "** Mooring_Number: N/A\r\n" + "** Latitude: \r\n" + "** Longitude: \r\n" + "** Sounding: 20.6 m\r\n" + "** Profile_Number: 2\r\n" + "** Profile_Direction: up\r\n" + "** Notes: \r\n" + "* ds\r\n" + "* SeacatPlus V 1.6b SERIAL NO. 5251 23 Sep 2009 11:29:02\r\n" + "* vbatt = 12.0, vlith = 8.4, ioper = 61.8 ma, ipump = 134.7 ma, \r\n" + "* iext01 = 5.4 ma\r\n" + "* iext23 = 77.8 ma\r\n" + "* \r\n" + "* status = not logging\r\n" + "* number of scans to average = 1\r\n" + "* samples = 493446, free = 1, casts = 1\r\n" + "* mode = profile, minimum cond freq = 3000, pump delay = 20 sec\r\n" + "* autorun = no, ignore magnetic switch = yes\r\n" + "* battery type = alkaline, battery cutoff = 7.3 volts\r\n" + "* pressure sensor = strain gauge, range = 508.0\r\n" + "* SBE 38 = no, Gas Tension Device = no\r\n" + "* Ext Volt 0 = yes, Ext Volt 1 = no, Ext Volt 2 = yes, Ext Volt 3 = yes\r\n" + "* echo commands = yes\r\n" + "* output format = raw HEX\r\n" + "* S>\r\n" + "* dcal\r\n" + "* SeacatPlus V 1.6b SERIAL NO. 5251 23 Sep 2009 11:29:08\r\n" + "* temperature: 09-oct-07\r\n" + "* TA0 = 1.276108e-03\r\n" + "* TA1 = 2.615414e-04\r\n" + "* TA2 = -1.590756e-07\r\n" + "* TA3 = 1.496275e-07\r\n" + "* TOFFSET = 0.000000e+00\r\n" + "* conductivity: 09-oct-07\r\n" + "* G = -1.016034e+00\r\n" + "* H = 1.583915e-01\r\n" + "* I = -5.990283e-04\r\n" + "* J = 7.154628e-05\r\n" + "* CF0 = 2.541437e+03\r\n" + "* CPCOR = -9.570000e-08\r\n" + "* CTCOR = 3.250000e-06\r\n" + "* CSLOPE = 1.000000e+00\r\n" + "* pressure S/N = 2458922, range = 508 psia: 04-oct-07\r\n" + "* PA0 = 3.174352e-01\r\n" + "* PA1 = 1.542191e-03\r\n" + "* PA2 = 6.554083e-12\r\n" + "* PTCA0 = 5.251525e+05\r\n" + "* PTCA1 = 1.352052e+01\r\n" + "* PTCA2 = -1.455316e-01\r\n" + "* PTCB0 = 2.558650e+01\r\n" + "* PTCB1 = -1.500000e-03\r\n" + "* PTCB2 = 0.000000e+00\r\n" + "* PTEMPA0 = -5.795848e+01\r\n" + "* PTEMPA1 = 5.427466e+01\r\n" + "* PTEMPA2 = -5.522354e-01\r\n" + "* POFFSET = 0.000000e+00\r\n" + "* volt 0: offset = -4.678210e-02, slope = 1.248624e+00\r\n" + "* volt 1: offset = -4.696105e-02, slope = 1.248782e+00\r\n" + "* volt 2: offset = -4.683263e-02, slope = 1.249537e+00\r\n" + "* volt 3: offset = -4.670842e-02, slope = 1.249841e+00\r\n" + "* EXTFREQSF = 1.000012e+00\r\n" + "* S>\r\n" + "** First Sample Time: 23 Sep 2009 11:29:15\r\n" + "*END*\r\n" + "03B7DA1909A2086F85510B6E950574D157\r\n" + "03B7DB1909A3086FC9510C6E9A05B2E8FD\r\n" + "03B7DF1909A9087032510B6EB3059DFCB5\r\n" + "03B7E51909A9087090510B6F1B05C7E0FD\r\n" + "03B7E61909A30870AD510C6FEE05A5E723\r\n" + "03B7E51909A308708D510B709D05A2F4CF\r\n" + "03B7E31909A308705F510C70D305C9E81B\r\n" + "03B7E11909A9087039510B70A905E5E808\r\n" + "03B7DC19099D087027510B708805BCF033\r\n" + "03B7D91909A9087038510C703405D4EAF3\r\n" + "03B7DC1909A9087077510C6FA80593E975\r\n" + "03B7DE1909A30870CD510D6F15055CEDE5\r\n" + "03B7E11909A3087137510B6EA40573EC14\r\n" + "03B7E11909A908719C510E6E1505A9EAA6\r\n" + "03B7E31909AF0871D7510C6D98058CECCF\r\n" + "03B7E21909A30871D6510C6D4E0566EC65\r\n" + "03B7E21909A908719E510B6CDD0586EB59\r\n" + "03B7E11909AC087153510C6C6A05D1EC54\r\n" + "03B7DE1909AF08711D510E6BFE059BEC44\r\n" + "03B7D91909A3087112510D6BE005AFEBAA\r\n" + "03B7D91909A3087141510E6BE9056AEC19\r\n" + "03B7E01909A308718C510B6C000580EC27\r\n" + "03B7E11909A30871B3510C6C040577EBAD\r\n" + "03B7E21909A3087159510D6C180565EBC6\r\n" + "03B7E21909A30870AA510D6C410570EBD8\r\n" + "03B7E21909A9086FDB510E6C8305A3EBB3\r\n" + "03B7DF1909A9086F5E510B6D7905B2EBF1\r\n" + "03B7DB1909A3086F3B510E6EA9056DEBFC\r\n" + "03B7DA1909A3086F5A510D6FB30565EBE1\r\n" + "03B7E019099D086FA9510D701D056DEBF5\r\n" + "03B7E219099D08700D510F708505C1EBF2\r\n" + "03B7E319099D08704E510E711B05BFEBDE\r\n" + "03B7E219099D08704C510D71D7055FEBCC\r\n" + "03B7E31909A308702C510E72320573EBD9\r\n" + "03B7E219099D087017510E71EB05B1EBD8\r\n" + "03B7E41909A3087014510D713405A0EBCE\r\n" + "03B7E0190992087021510E702E059CEBD4\r\n" + "03B7E119099708703D510E6EFD057EEBDB\r\n" + "03B7E4190997087069510D6DDE0594EBCF\r\n" + "03B7E41909970870A3510D6CFD05AFEBC6\r\n" + "03B7E81909970870D6510E6C6605A6EBCC\r\n" + "03B7E819099D0870DA510F6C10057CEBD6\r\n" + "03B7EA19099D0870B7510F6BB5057CEBD5\r\n" + "03B7E819099708708E510F6B5805B6EBCC\r\n" + "03B7E719099B087086510D6AAF058BEBC3\r\n" + "03B7E919098C0870B3510E6A230569EA83\r\n" + "03B7E819098C087108510E69A40575EAA4\r\n" + "03B7EE190992087170510F69BC0585EB83\r\n" + "03B7F11909920871DB510D6A4D059FEA8B\r\n" + "03B7F419099D087219510F6AF0056DEAEC\r\n" + "03B7F219099708721C510E6B4F0558EBAD\r\n" + "03B7F41909920871C9510F6B5E0576EBCF\r\n" + "03B7F21909AF087149510D6B5D05A2EBEC\r\n" + "03B7EE1909A30870D3510D6C4F05CAEBED\r\n" + "03B7EA1909A3087091510E6DEF05CCEBFF\r\n" + "03B7E819099D087075510D6F6505C0EBEF\r\n" + "03B7E619099D08707F510E703C05EBEBAD\r\n" + "03B7E519099D087092510E706905DAEBE2\r\n" + "03B7E61909A3087086510F702E0629EBFB\r\n" + "03B7E819099D087043510E6FAD060AEBF3\r\n" + "03B7E519099D086FCE51106F3F059DEBF8\r\n" + "03B7E11909A9086F4E51106EE40596EBF8\r\n" + "03B7DE190992086EED510F6E7B05B2EC00\r\n" + "03B7DE190992086EC7510F6DF405E2EC02\r\n" + "03B7DA190997086EE4510D6D7005A1EC06\r\n" + "03B7DD190992086F3851106CF4056AEC07\r\n" + "03B7E419098C086FCC510F6C9A056EEBFD\r\n" + "03B7E719098C087082510F6D0D057EEC0E\r\n" + "03B7EE1909970870D0510E6EB10552EBFB\r\n" + "03B7F1190997087098511070530552EBFF\r\n" + "03B7ED1909A608701E510E715905B2EC08\r\n" + "03B7EB19099D086FD2510E72540581EBF5\r\n" + "03B7EA190997086FC8511173370568EBE8\r\n" + "03B7E5190992086FF0510F73AA0577EC08\r\n" + "03B7ED19098608702C510F73A10581EC26\r\n" + "03B7EE19098608706B5110736A0564EC17\r\n" + "03B7EF19098608709D510D72DF059FEC0F\r\n" + "03B7F01909970870B6510F723B056FEBFB\r\n" + "03B7F21909970870CC5110716305C8EB5C\r\n" + "03B7F31909970870E8510F706005D4EB45\r\n" + "03B7F019099208711751106F4505B4EBC4\r\n" + "03B7F0190997087161510F6E230581EBD9\r\n" + "03B7F11909C00871B751106D32057AEBEC\r\n" + "03B7E31909CC0871F7510F6CF305A9EBD5\r\n" + "03B7D91909A30871FD510F6E7305CAEBD2\r\n" + "03B7E01909520871C1510F710E05AEEB74\r\n" + "03B7FB19096308716E510F73B205A2EB62\r\n" + "03B81019094C08712D511075E705C5EB0A\r\n" + "03B81E19094C0871155111779005A2EB7B\r\n" + "03B82419096908711C511178C80591EB6D\r\n" + "03B82219099D087120511179C60597EB65\r\n" + "03B80D1909BA0870E651107AA1059AEB85\r\n" + "03B7F71909DD08706F51117B5E05A3EB97\r\n" + "03B7DE190A29086FF151107BDC0596EBA0\r\n" + "03B7B7190A69086F9651117C2A059BEBA2\r\n" + "03B78C190A69086F83510F7C6605ABEBA5\r\n" + "03B76C190A69086F9F510F7CC405A8EB5D\r\n" + "03B75E190A74086FE2510F7D3505A2EB43\r\n" + "03B758190A5108703551107DA205A6EB4E\r\n" + "03B75B190A1208706151107DC905CAEB82\r\n" + "03B772190A2308703A51117DD505BBEB94\r\n" + "03B781190A4C086FDF51117DDB05ACEB79\r\n" + "03B779190A7A086F97510F7DF605B3EB75\r\n" + "03B766190A86086F8551107E0005B4EB6E\r\n" + "03B753190A74086F9F51117DF3059AEB2B\r\n" + "03B74F190A69086FE2510F7DF5059CEB50\r\n" + "03B750190A7408703D510F7DFF05ABEB63\r\n" + "03B750190A690870A051107E0C0595EB39\r\n" + "03B754190A4C0870DB510E7E2705AFEB46\r\n" + "03B75D190A400870F051107E3305ADEB54\r\n" + "03B76B190A340870E0510E7E30058AEB63\r\n" + "03B776190A230870CD510F7E2105A3EB6D\r\n" + "03B7831909F40870D851107E1505AEEBA6\r\n" + "03B7941909EF0870F651137E100596EB97\r\n" + "03B7A71909E308711851117E1D059FEBBB\r\n" + "03B7AF1909EF08712651107E3B0587EBA8\r\n" + "03B7B41909EF08712351107E580592EBAC\r\n" + "03B7B51909EF08711E51117E7E058DEB88\r\n" + "03B7B4190A0C08711F51107E8B057BEB8D\r\n" + "03B7AC190A1708711951117E900589EBB3\r\n" + "03B7A2190A170870F851127E730584EBB2\r\n" + "03B798190A1D0870B8510F7E590590EBB5\r\n" + "03B797190A2C08707351117E250571EB84\r\n" + "03B78F190A3408704551117E0D0573EB99\r\n" + "03B78A190A4608703B51107DFD058CEAF6\r\n" + "03B77C190A91087045510F7E150589EAED\r\n" + "03B759190A5D08705051117E3A057CEB52\r\n" + "03B751190A9108704951117E550584EBA0\r\n" + "03B74A190A9708703151107E68059CEBAC\r\n" + "03B73D190A8008702051117E750587EBCB\r\n" + "03B73D190A6908702651107E7D0578EBCE\r\n" + "03B748190A5108703951107E880595EBB9\r\n" + "03B756190A4608704A51117E990595EBC7\r\n" + "03B760190A3408705051117EC2059AEBE0\r\n" + "03B771190A2F08705A51117ED1057DEBB0\r\n" + "03B77C190A3408707A51127ED60591EBC0\r\n" + "03B77D190A3A0870AF51107EDD056AEBBE\r\n" + "03B77C190A400870ED510F7ED60576EB95\r\n" + "03B77A190A46087126510E7EC6058AEB88\r\n" + "03B778190A3408714151127EC80588EB90\r\n" + "03B77B190A2F08712551107EBF0588EB95\r\n" + "03B780190A230870E651107E9D0585EBE0\r\n" + "03B786190A3408709E51117E7D059DEBDA\r\n" + "03B786190A3408706F51117E55057AEBD1\r\n" + "03B784190A2308705B51117E3F0594EBD5\r\n" + "03B788190A1708704751107E5F0589EBB2\r\n" + "03B78E190A1508703451127E5B0587EB98\r\n" + "03B792190A2308703351107E650573EBD0\r\n" + "03B794190A3408705C51117E7B0563EBCC\r\n" + "03B78F190A2F08708D51117E8D0585EBC2\r\n" + "03B788190A230870A351107EAE0587EBBE\r\n" + "03B78A190A1208708651107EBE059EEBA2\r\n" + "03B791190A1208705F51127EB4057CEB8F\r\n" + "03B794190A1D08706051117E870591EB96\r\n" + "03B795190A2F08708C51137E530585EBA8\r\n" + "03B78C190A400870CC510F7E5A0580EBAE\r\n" + "03B783190A3408711451117E82056DEBB0\r\n" + "03B781190A2F08714051137EAF058DEB65\r\n" + "03B784190A2908713551117EB7057CEB91\r\n" + "03B785190A0C08710651107EC70596EB9D\r\n" + "03B7901909F40870D551117EC2057FEBB6\r\n" + "03B79E190A0C0870B851107EBA057BEBB9\r\n" + "03B79F190A290870B751137EC8058EEBD5\r\n" + "03B799190A4C0870C551117ED7058BEBD1\r\n" + "03B786190A3A0870BB51127EF7058AEBC8\r\n" + "03B782190A6908709451127EED0582EB92\r\n" + "03B771190A9708706551117EBF057DEB8F\r\n" + "03B75A190AA908705151137E8E0578EB87\r\n" + "03B73F190AAF08705D51117E55057CEBC1\r\n" + "03B730190AAF08707A51127E600584EBB7\r\n" + "03B72B190A8C08708351107E8D0586EB78\r\n" + "03B735190A4D08706751127EB50587EB75\r\n" + "03B74A190A2308703051137EC70579EB63\r\n" + "03B76A190A1708700151117E970587EB8F\r\n" + "03B780190A29086FF8510F7E610582EBB6\r\n" + "03B786190A6308701351107E4A057EEB8B\r\n" + "03B77D190A5108704251107E34058CEB86\r\n" + "03B770190A3408705C51107E23057FEB95\r\n" + "03B774190A2F08705951127E20057BEBCB\r\n" + "03B779190A2308705151117E2005B6EBBF\r\n" + "03B7841909FA08705B51137E1B0589EB9D\r\n" + "03B7921909C608707D51127E09058CEB9D\r\n" + "03B7AF1909E90870A751117E22058DEB84\r\n" + "03B7B9190A0C0870CA51137E580580EBA7\r\n" + "03B7B0190A060870E351127E940570EB8D\r\n" + "03B7AB1909FA0870F451137EAF057CEBCF\r\n" + "03B7AC1909D70870F951117EC00590EBF1\r\n" + "03B7B519098C08710751117EB60569EBDD\r\n" + "03B7D019098C08712151117ECD0588EBBD\r\n" + "03B7EA19097508713751117EDA0586EB92\r\n" + "03B7FB19092908713051117ED50591EBD1\r\n" + "03B81E1908E908710551147EA9057DEBD2\r\n" + "03B84B1908CC0870CB51127E6A058EEBBB\r\n" + "03B86F1908E90870A851117E300583EBC7\r\n" + "03B87C19090C087096510F7E090583EBA7\r\n" + "03B87519095708707F51107E130596EB9C\r\n" + "03B8521909AF08705B51137E4D057FEBAA\r\n" + "03B8261909C208702C51117E850589EBB5\r\n" + "03B7FD190A2F086FF651137EC30595EBD1\r\n" + "03B7CE190A5D086FB451127EE60589EBC0\r\n" + "03B79A190A57086F7951107F16057BEBA1\r\n" + "03B77A190A91086F4051117F320590EB9D\r\n" + "03B75A190A5D086F0851117F33059FEB70\r\n" + "03B758190A4C086ECB51117F2A0588EB74\r\n" + "03B760190A51086E8151127F340588EB5B\r\n" + "03B761190A5D086E2C51147F0E0589EB3F\r\n" + "03B75F190ABA086DDD51107EEE0585EB34\r\n" + "03B745190B17086D8551117ED80582EAF6\r\n" + "03B713190AFA086D2A51137EEF0574EA76\r\n" + "03B6F7190B74086CCD51127EFF058BEA57\r\n" + "03B6CA190CDD086C6D51127EEA0582EA61\r\n" + "03B647190D1D086C1051127ED60586EA8E\r\n" + "03B5C9190D06086BB051127EED0587EA7D\r\n" + "03B58C190C80086B4951107EF10571EA85\r\n" + "03B593190C2F086AE351127EF10589EAA8\r\n" + "03B5BD190CEF086A7E51117EF2057AEAB4\r\n" + "03B5A4190E63086A1451127EF20570EAC2\r\n" + "03B523190E3A0869A751117EDE0577EAFB\r\n" + "03B4BD190F1208694051117EE00591EB0E\r\n" + "03B453190F770868D451127ECF05A0EB24\r\n" + "03B3F319100708686B51117EAA062AEAFE\r\n" + "03B39019103508680551117E8E0597EB65\r\n" + "03B33E19104708679851127E790586EB9C\r\n" + "03B30E19105208672F51117E520575EB76\r\n" + "03B2EF1910BB0866C451127E5B0582EB81\r\n" + "03B2C41910DE08665451117E610580EBA4\r\n" + "03B29B1910F00865DF51117E790597EBA8\r\n" + "03B28219116408656851127E87058CEBCD\r\n" + "03B2501911BC0864F451127E960579EB9F\r\n" + "03B2101911A408648151117E910589EBC1\r\n" + "03B1F019117008640D51127E9B0599EBDD\r\n" + "03B1EF19114108639851117E8B059AEBEA\r\n" + "03B20419112A08632651117E840588EBEA\r\n" + "03B21B1911760862B051137E7F0599EBF7\r\n" + "03B21519118A08624151117E6805B3EBE1\r\n" + "03B2011911300861D351127E560588EC07\r\n" + "03B20E19128E08615651117E3205A0EC1A\r\n" + "03B1CD1913A50860D551127E060582EC18\r\n" + "03B12F19142608606151107DF50590EC29\r\n" + "03B09D191466085FEF51137DF90589EC10\r\n" + "03B03419148F085F7951127E0F05A2EC36\r\n" + "03AFEA191567085F0051127E2D0588EC43\r\n" + "03AF8F19168B085E8351137E3C0590EC41\r\n" + "03AEF619173A085E0A51127E400589EC10\r\n" + "03AE6019177A085D9C51127E55057FEC1B\r\n" + "03ADEB1917AE085D3051117E730592EC36\r\n" + "03AD9D1917F0085CBC51137E7C0589EC37\r\n" + "03AD61191823085C4A51117E83059EEC68\r\n" + "03AD2D191858085BD451127E7D0599EC5F\r\n" + "03AD001918EA085B5751137E7A0593EC44\r\n" + "03ACC0191959085AE351127E810599EC3F\r\n" + "03AC751919C8085A7E51127E670594EC4B\r\n" + "03AC24191A1A085A0F51147E3B059BEC72\r\n" + "03ABD9191A3D08599F51127E2405ACEC68\r\n" + "03ABA1191A4908592851137E250589EC7D\r\n" + "03AB7E191A490858AC51127E320590EC81\r\n" + "03AB6D191A4D08582D51107E4F05A1EC99\r\n" + "03AB64191A540857B151147E5C059BEC97\r\n" + "03AB5F191A0808574251147E6E058AEC94\r\n" + "03AB6A191A8F0856CD51137E5E0598ECA8\r\n" + "03AB5B191AFE08565451117E4D059CECC2\r\n" + "03AB26191B440855D751127E1C0593ECD5\r\n" + "03AAED191B7E08555A51117E070587ECBA\r\n" + "03AAB4191BAD0854D951137DEF058CECB8\r\n" + "03AA8A191C8B08546751137DF0058DECBA\r\n" + "03AA34191D840853F851137DE90587EC81\r\n" + "03A9B0191DC108538A51137DDA0573ECA6\r\n" + "03A942191DF608531151127DEA058FECC1\r\n" + "03A8FA191E4808529651117DFC0593ECA4\r\n" + "03A8BD191E9408521F51127E200577EC90\r\n" + "03A880191ECF0851AE51117E4D0575EC81\r\n" + "03A84E191F0908513751107E78058EEC8B\r\n" + "03A821191F2C0850D051127E8D0575EC9E\r\n" + "03A7FB191F6108507051127E7A057CEC8F\r\n" + "03A7DD191FB008500651117E770561EC72\r\n" + "03A7B3192045084F9751127E5B0555EC7F\r\n" + "03A77419210C084F2551137E4D055FEC8D\r\n" + "03A7121921CE084EB351127E3F0550EC8D\r\n" + "03A69D192266084E4151137E3C054BECA5\r\n" + "03A6261922F9084DDA51137E35054FEC98\r\n" + "03A5BA192350084D7D51137E250552ECA7\r\n" + "03A55F1923B3084D1A51127E270556ECA4\r\n" + "03A50F1924B6084CAC51137E32055EECA4\r\n" + "03A4A8192628084C3C51127E330545ECA2\r\n" + "03A3F81926EF084BC951147E27053CEC6C\r\n" + "03A34919276A084B5151107E1A053AEC68\r\n" + "03A2C0192793084AE751137E14053FEC52\r\n" + "03A2681927C8084A8651127DFC0543EC2A\r\n" + "03A237192769084A2351107DD00546EC1D\r\n" + "03A22F1927410849B451137DA10565EC18\r\n" + "03A23819274708494151147D6A0558EBEF\r\n" + "03A23C19291D0848CC51127D32053DEBFC\r\n" + "03A1CE19291708485151137CED0536EBDF\r\n" + "03A16A1928720847E951137CD60549EBB7\r\n" + "03A15D19288208477F51127CC10541EB7D\r\n" + "03A17119269708471751157C96054CEB61\r\n" + "03A1E31928260846AA51127C4F0549EB72\r\n" + "03A1F119295708464351127BFF0536EB8C\r\n" + "03A190192A480845CD51127BC30540EB66\r\n" + "03A101192B1008454F51137BAC0547EB53\r\n" + "03A06D192B480844E451137B9F0551EB17\r\n" + "039FFF192B8B08447B51127B95054CEACE\r\n" + "039FB1192BAF08440B51127B95054CEACD\r\n" + "039F7B192BD208439D51127B9B0548EAC0\r\n" + "039F54192BC608432951127B830563EA82\r\n" + "039F40192C3C0842AF51147B7B0567EA74\r\n" + "039F1C192C8308423751137B84054EEA12\r\n" + "039EEE192CE00841C251147B740572EA21\r\n" + "039EB9192D1B08415351137B550566EA2D\r\n" + "039E88192D500840DD51127B4A0568E9E2\r\n" + "039E5C192D5C08406A51137B6A0577E9FF\r\n" + "039E41192D7308400051137B8D0586E9EF\r\n" + "039E2B192D75083F9C51117B9E0591E9DC\r\n" + "039E1E192DA2083F3551127BB005B1E9F6\r\n" + "039E0A192DCB083EBC51137BD405C0E9E5\r\n" + "039DF3192DDD083E4B51147BE805CDE9AE\r\n" + "039DDF192DE3083DDE51127C0305D2E97F\r\n" + "039DD4192DF7083D6F51147C0105EEE982\r\n" + "039DC8192E24083D0551137C300614E941\r\n" + "039DB5192E76083C9D51147C1A0608E930\r\n" + "039D94192E93083C3151137C180619E901\r\n" + "039D75192E99083BC151137BDF061AE8FC\r\n" + "039D62192E99083B4C51137BA80627E8F5\r\n" + "039D55192EA0083ADB51137B740623E8F4\r\n" + "039D4F192E93083A6E51137B4A0648E8BB\r\n" + "039D50192E5E083A0151127B38062BE8F8\r\n" + "039D5B192E8208399E51147B130653E8F7\r\n" + "039D5F192EA508393B51127AFC065AE922\r\n" + "039D56192EDA0838E051137AE10641E8DC\r\n" + "039D3B192F9808387051137AC1065FE8EB\r\n" + "039CFC19304108380451127A970688E906\r\n" + "039C9619316708379551137A990665E8CC\r\n" + "039C0A1931D708371F51137AAF064BE8AF\r\n" + "039B891932700836AC51147ABE0660E8A3\r\n" + "039B1A19325F08363951127AD60656E83B\r\n" + "039AD41932700835C451137AD50665E838\r\n" + "039AB31932A508354B51157AC50649E854\r\n" + "039A981932E60834D951127AB50660E85B\r\n" + "039A7619332108347451137A9C0649E716\r\n" + "039A5319331F08341051147A87062CE662\r\n" + "039A3B1933440833AF51137A87063BE735\r\n" + "039A2B19335608334F51137AB9064EE54D\r\n" + "039A1B19335C0832D251127AAE0634E748\r\n" + "039A1019335608324451137A9C061DE7EB\r\n" + "039A081933510831BD51137A6A0615E797\r\n" + "039A0519336708315051137A4E0640E5FE\r\n" + "039A0119336208311851127A57062EE602\r\n" + "0399FF1932E008312251137A86061FE6E9\r\n" + "039A1D19329F08317351127AD305F7E238\r\n" + "039A4B1932AE0831D951137AF3060DE185\r\n" + "039A681931B40831FB51117AE205F6E3F0\r\n" + "039A901932000831EF51137AC105EFE576\r\n" + "039ABF1931C50831E551117A9C05EBE227\r\n" + "039AE91931730831E951137A520608E5A5\r\n" + "039B191931C10831DF51137A2405EBE3C3\r\n" + "039B261932240831BD51137A1A05CCD963\r\n" + "039B091932BD08319151137A2205E2DFBA\r\n" + "039ACB1932FD08319051147A460602DEC6\r\n" + "039A8B19330F0831A851147A8D05FCE398\r\n" + "039A6019330E0831BB51137AD605E9DF3A\r\n" + "039A491933320831AD51157AEF05D1E03D\r\n" + "039A3A19332D08319451137AFC05D3E01E\r\n" + "039A311933090831A251137AF005CBDF6F\r\n" + "039A3619329F0831C051147AF805D8E1A9\r\n" + "039A561932590831CF51137AFF05CDE24F\r\n" + "039A851931FA0831BF51157B1C05CBDDDE\r\n" + "039AB81932240831AC51157B3805CCE03E\r\n" + "039AD41932180831AA51127B3805CBDF14\r\n" + "039ADF19321E0831C451137B2405B9E2B7\r\n" + "039AE51932040831E851137AFD05B2E2FF\r\n" + "039AEA1931D708320151167AFF05A8E322\r\n" + "039AFD1931A208320551157B14059CE5B3\r\n" + "039B171931DD08320051147B3405B6E6C0\r\n" + "039B2019325908320351167B6A05B2E5E4\r\n" + "039AFC19323208320851167B950597E804\r\n" + "039AE51932180831FE51157BB0059DE6E8\r\n" + "039AE61932240831E451147B940585E718\r\n" + "039AE61932B70831C651147B5D058EE88E\r\n" + "039AC11932F80831A551167B330596E8A9\r\n" + "039A8B1932D008317C51147B2B05A4E899\r\n" + "039A7819326A08314451137B4105A3E618\r\n" + "039A8919324D08313951167B610585DD1C\r\n" + "039AA519326A08316F51147B7005A0E285\r\n" + "039AB11932AB0831C351157B7D05A5DD05\r\n" + "039AA019329D0831F751147B93059BE50B\r\n" + "039A9619327008320551157B8B058FDE93\r\n" + "039A9F19325E0831FE51157B720590DA65\r\n" + "039AAC1932B70831F151157B450582DE2F\r\n" + "039A9F1932F20831E651137B1C0593DEDA\r\n" + "039A7C1933400831D851167AF7059FE1F3\r\n"; try { CTDParser ctdParser = new CTDParser(file); CTDConverter ctdConverter = new CTDConverter(ctdParser); ctdConverter.convert(); } catch (ParseException pe) { System.out.println("There was a parse exception:" + pe.getMessage()); System.exit(0); } }
From source file:fll.scheduler.TableOptimizer.java
/** * @param args//ww w.j a va 2s. c o m */ public static void main(final String[] args) { LogUtils.initializeLogging(); File schedfile = null; final Options options = buildOptions(); try { final CommandLineParser parser = new PosixParser(); final CommandLine cmd = parser.parse(options, args); schedfile = new File(cmd.getOptionValue(SCHED_FILE_OPTION)); } catch (final org.apache.commons.cli.ParseException pe) { LOGGER.error(pe.getMessage()); usage(options); System.exit(1); } FileInputStream fis = null; try { if (!schedfile.canRead()) { LOGGER.fatal(schedfile.getAbsolutePath() + " is not readable"); System.exit(4); } final boolean csv = schedfile.getName().endsWith("csv"); final CellFileReader reader; final String sheetName; if (csv) { reader = new CSVCellReader(schedfile); sheetName = null; } else { sheetName = SchedulerUI.promptForSheetName(schedfile); if (null == sheetName) { return; } fis = new FileInputStream(schedfile); reader = new ExcelCellReader(fis, sheetName); } final ColumnInformation columnInfo = TournamentSchedule.findColumns(reader, new LinkedList<String>()); if (null != fis) { fis.close(); fis = null; } final List<SubjectiveStation> subjectiveStations = SchedulerUI.gatherSubjectiveStationInformation(null, columnInfo); // not bothering to get the schedule params as we're just tweaking table // assignments, which wont't be effected by the schedule params. final SchedParams params = new SchedParams(subjectiveStations, SchedParams.DEFAULT_PERFORMANCE_MINUTES, SchedParams.MINIMUM_CHANGETIME_MINUTES, SchedParams.MINIMUM_PERFORMANCE_CHANGETIME_MINUTES); final List<String> subjectiveHeaders = new LinkedList<String>(); for (final SubjectiveStation station : subjectiveStations) { subjectiveHeaders.add(station.getName()); } final String name = Utilities.extractBasename(schedfile); final TournamentSchedule schedule; if (csv) { schedule = new TournamentSchedule(name, schedfile, subjectiveHeaders); } else { fis = new FileInputStream(schedfile); schedule = new TournamentSchedule(name, fis, sheetName, subjectiveHeaders); } final TableOptimizer optimizer = new TableOptimizer(params, schedule, schedfile.getAbsoluteFile().getParentFile()); final long start = System.currentTimeMillis(); optimizer.optimize(null); final long stop = System.currentTimeMillis(); LOGGER.info("Optimization took: " + (stop - start) / 1000.0 + " seconds"); } catch (final ParseException e) { LOGGER.fatal(e, e); System.exit(5); } catch (final ScheduleParseException e) { LOGGER.fatal(e, e); System.exit(6); } catch (final IOException e) { LOGGER.fatal("Error reading file", e); System.exit(4); } catch (final RuntimeException e) { LOGGER.fatal(e, e); throw e; } catch (InvalidFormatException e) { LOGGER.fatal(e, e); System.exit(7); } finally { try { if (null != fis) { fis.close(); } } catch (final IOException e) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Error closing stream", e); } } } }
From source file:org.azyva.dragom.tool.RootManagerTool.java
/** * Method main.//from ww w . ja v a2s .c om * * @param args Arguments. */ public static void main(String[] args) { DefaultParser defaultParser; CommandLine commandLine; String command; int exitStatus; RootManagerTool.init(); try { defaultParser = new DefaultParser(); try { commandLine = defaultParser.parse(RootManagerTool.options, args); } catch (org.apache.commons.cli.ParseException pe) { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_ERROR_PARSING_COMMAND_LINE), pe.getMessage(), CliUtil.getHelpCommandLineOption())); } if (CliUtil.hasHelpOption(commandLine)) { RootManagerTool.help(); } else { args = commandLine.getArgs(); if (args.length < 1) { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_INVALID_ARGUMENT_COUNT), CliUtil.getHelpCommandLineOption())); } CliUtil.setupExecContext(commandLine, true); command = args[0]; if (command.equals("list")) { RootManagerTool.listCommand(commandLine); } else if (command.equals("add")) { RootManagerTool.addCommand(commandLine); } else if (command.equals("add-from-file")) { RootManagerTool.addFromFileCommand(commandLine); } else if (command.equals("add-artifact")) { RootManagerTool.addArtifactCommand(commandLine); } else if (command.equals("add-artifact-from-file")) { RootManagerTool.addArtifactFromFileCommand(commandLine); } else if (command.equals("remove")) { RootManagerTool.removeCommand(commandLine); } else if (command.equals("remove-all")) { RootManagerTool.removeAllCommand(commandLine); } else if (command.equals("list-reference-path-matchers")) { RootManagerTool.listReferencePathMatchersCommand(commandLine); } else if (command.equals("add-reference-path-matcher")) { RootManagerTool.addReferencePathMatcherCommand(commandLine); } else if (command.equals("remove-reference-path-matcher")) { RootManagerTool.removeReferencePathMatcherCommand(commandLine); } else if (command.equals("remove-all-reference-path-matchers")) { RootManagerTool.removeAllReferencePathMatchersCommand(commandLine); } else { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_INVALID_COMMAND), command, CliUtil.getHelpCommandLineOption())); } } // Need to call before ExecContextHolder.endToolAndUnset. exitStatus = Util.getExitStatusAndShowReason(); } catch (RuntimeExceptionUserError reue) { System.err.println( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_USER_ERROR_PREFIX) + reue.getMessage()); exitStatus = 1; } catch (RuntimeException re) { re.printStackTrace(); exitStatus = 1; } finally { ExecContextHolder.endToolAndUnset(); } System.exit(exitStatus); }
From source file:org.azyva.dragom.tool.WorkspaceManagerTool.java
/** * Method main./*from w ww . j a v a 2 s.c om*/ * * @param args Arguments. */ public static void main(String[] args) { DefaultParser defaultParser; CommandLine commandLine; String command; int exitStatus; WorkspaceManagerTool.init(); try { defaultParser = new DefaultParser(); try { commandLine = defaultParser.parse(WorkspaceManagerTool.options, args); } catch (org.apache.commons.cli.ParseException pe) { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_ERROR_PARSING_COMMAND_LINE), pe.getMessage(), CliUtil.getHelpCommandLineOption())); } if (CliUtil.hasHelpOption(commandLine)) { WorkspaceManagerTool.help(); } else { WorkspaceManagerTool workspaceManagerTool; args = commandLine.getArgs(); if (args.length < 1) { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_INVALID_ARGUMENT_COUNT), CliUtil.getHelpCommandLineOption())); } command = args[0]; workspaceManagerTool = new WorkspaceManagerTool(); workspaceManagerTool.commandLine = commandLine; workspaceManagerTool.execContext = CliUtil.setupExecContext(commandLine, true); workspaceManagerTool.workspacePlugin = workspaceManagerTool.execContext .getExecContextPlugin(WorkspacePlugin.class); workspaceManagerTool.userInteractionCallbackPlugin = ExecContextHolder.get() .getExecContextPlugin(UserInteractionCallbackPlugin.class); workspaceManagerTool.model = ExecContextHolder.get().getModel(); if (command.equals("status")) { workspaceManagerTool.statusCommand(); } else if (command.equals("update")) { workspaceManagerTool.updateCommand(); } else if (command.equals("commit")) { workspaceManagerTool.commitCommand(); } else if (command.equals("clean-all")) { workspaceManagerTool.cleanAllCommand(); } else if (command.equals("clean-system")) { workspaceManagerTool.cleanSystemCommand(); } else if (command.equals("clean-user")) { workspaceManagerTool.cleanUserCommand(); } else if (command.equals("clean-non-root-reachable")) { workspaceManagerTool.cleanNonRootReachableCommand(); } else if (command.equals("remove-module-version")) { workspaceManagerTool.removeModuleVersionCommand(); } else if (command.equals("remove-dir")) { workspaceManagerTool.removeDirCommand(); } else if (command.equals("build-clean-all")) { workspaceManagerTool.buildCleanAllCommand(); } else if (command.equals("build-clean-module-version")) { workspaceManagerTool.buildCleanModuleVersionCommand(); } else if (command.equals("build-clean-dir")) { workspaceManagerTool.buildCleanDirCommand(); } else if (command.equals("fix")) { workspaceManagerTool.fixCommand(); } else { throw new RuntimeExceptionUserError(MessageFormat.format( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_INVALID_COMMAND), command, CliUtil.getHelpCommandLineOption())); } } // Need to call before ExecContextHolder.endToolAndUnset. exitStatus = Util.getExitStatusAndShowReason(); } catch (RuntimeExceptionUserError reue) { System.err.println( CliUtil.getLocalizedMsgPattern(CliUtil.MSG_PATTERN_KEY_USER_ERROR_PREFIX) + reue.getMessage()); exitStatus = 1; } catch (RuntimeException re) { re.printStackTrace(); exitStatus = 1; } finally { ExecContextHolder.endToolAndUnset(); } System.exit(exitStatus); }