Canadian Mind Products Software

Check a Java jar to ma...

JarCheck

Check a Java jar to make sure all the javac -target versions of the class files are what you expect. Java application. Requires Java version 1.5 or later. All Java source code is included. to use: java -jar jarcheck.jar jartotocheck.jar 1.1 1.4 where jartocheck.jar is the name of jar to check. It will check all the class files in it. In this example: 1.1 is the lowest acceptable target version number. 1.4 is the highest acceptable target version number. Currently, only version numbers 1.0, 1.1, 1.2, 1.3, 1.4, 1.5 and 1.6 are supported. The program does not currently test minor version numbers. Why would you use this utility? To make sure that a jar intended to run under an old 1.1 JVM contains no classes accidentally compiled with javac -target 1.5. Passing this test does not guarantee the jar will work on an old JVM. The jar still might use methods not bundled with old JVMs. This should catch however, classes normally compiled with target 1.1 that were accidentally compiled with 1.5 as a side effect of compiling some 1.5 class.

Keywords: jarcheck jar java version major minor target encryption key

Java class library to ...

FileTimes

Java class library to get/set file and directory times: Create/LastModified/LastAccessed. For Windows only. Create time is when the file was first written. Modified time (sometimes called lastModified) is when the file was last written. Accessed time is when the file was last read or written. Checking its date, looking at its attributes or checking to see if it exists does not count as reading it. Get/Set Windows File Times Create/LastAccessed/LastModified with a JNI native code class. Java and JNI you include in your own code. You can test with C: CD \com.mindprod.filetimes java com.mindprod.filetimes.FileTimes and ensuring nativefiletimes.dll is on the path, e.g. in the current directory. In JDK 1.5+ the DLL may be in the jar, so long is it has no package path name. See FileTimes.java for the API to use these methods in your own programs. FileTimes does nothing by itself, other than a debugging test harness to demonstrate the methods. Windows keeps file timestamps accurate to 100 nanoseconds with 10,000 times as much precision as Java''s 1 ms. This means if you copy a file in Java, the new file will not have the exact same timestamp as the old. This package retrieves and sets timestamps accurate only to the millisecond.

Keywords: filetimes java classes create date last modified date last accessed date directory times free plugin

Conversion teaching to...

Converter

Conversion teaching tool. Shows you how to convert any of the 17 basic Java types into any of the other. Conversion Amanuensis as your side whenever you need Java code to convert anything to anything else. Runs an as Applet or application. To install, Extract the zip download with Winzip, available from http://www.winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the "user folder names" option. To run as an application, type: java -jar C:\com\mindprod\converter\converter.jar adjusting as necessary to account for where the jar file is. You can run it online at http://mindprod.com/applet/converter.html without installing it.

Keywords: java conversion applet html converter java jre jdk teaching training wheels guide intuitive wizard interface

In the following, pret...

Amper

In the following, pretend ! is an ampersand. Amper converts ! to !amp; in HTML files, but does not convert it when the ! is already in an entity e.g. !lt; !thetasym; !eacute; The main use for this is to pass HTMLValidator verification of your HTML, which is very picky about !, especially inside URLs. As a side effect, it also ensures all your comment delimiters balance. It does not change ! inside comments, though it will change it inside href= and image= urls, or anywhere else e.g. Java Applet parameters, which is correct according to the HTMLValidator. It does _not_ change " to !quot; or e'' to !eacute; It just fixes !, the most troublesome character. To convert a single file, type: java -jar C:\com\mindprod\amper\amper.jar myfile.html The results replace the old file, so you had better make a backup just in case this is not what you want. You can also list several files on the command line: java -jar C:\com\mindprod\amper\amper.jar myfile.html C:\mydir\another.html To use convert the current directory of html files: java -jar C:\com\mindprod\amper\amper.jar . Sorry no wildcards, just . , and .. DON''T USE WILDCARDS unless you deeply understand how they work. See http://mindprod.com/jgloss/wildcard.html. Windows expands them, not amper, and feeds them to amper (or any other program) as a giant list of all the directories and files in the current directory. Amper will thus tend process all the files in your directories, when you just meant to process the files in the current directory. The -s switch makes all subsequent directories searched recursively to include all their subdirectories. e.g. java -jar C:\com\mindprod\amper\amper.jar E:\mindprod will fix all *.html files in the mindprod directory tree, ignoring other types of files. If you have the jar extension set up as executable, you can abbreviate: C:\com\mindprod\amper\amper.jar .

Keywords: amper html ampersand entity unique power

Java classes to includ...

HunkIO

Java classes to include in your own programs. They let you read or write a file in one fell swoop into RAM. It also includes createTempFile method that is more convenient to use than Sun''s File.createTempFile. It also includes PrintWriterPlus that converts linefeeds to platform specific line feeds even when they are embedded in data. Why the three linked ball logo? It symbolises processing a file in line-sized chunks.

Keywords: hunkio readentirefile createtempfile prinwriterplus line feed line separator temporary files java classes library rotation angle

Calculates when variou...

Holiday Calculatior

Calculates when various holidays occur in any given year BC or AD. Designed to be cannibalised to include the calculation routines in your own programs. It currently calculates about 50 holidays including the following: New Years Day Congress Start Day Martin Luther King Day Inauguration Day Robbie Burns Day Australia Day Groundhog Day Mardi Gras Ash Wednesday Lincoln''s Birthday Valentines Day Presidents Day Alberta Family Day Washington''s Birthday Commonwealth Day Daylight Savings Start St Patrick''s day Vernal Equinox Palm Sunday Good Friday April Fools Day Earth Day Easter Sunday Easter Monday ANZAC Day Cinco de Mayo Europe Day Mothers Day Armed Forces Day Victoria Day Memorial Day Australia Queen''s Birthday Fathers Day Summer Solstice Aboriginal Day St Jean-Baptiste Day Canada Day Independence Day Utah Pioneer Day Parents'' Day Canada Civic Day Canadian Labour Day American Labor Day Grandparents Daay Autumnal Equinox Canadian Thanksgiving Columbus Day Halloween Daylight Savings End General Election Day Remembrance Day Veterans Day American Thanksgiving Human Rights Day Winter Solstice Christmas Eve Christmas Christmas in the USA Boxing Day New Years Eve If a holiday was not celebrated in a given year, it will not show. Includes complete Java source code to calculate when the holiday occurs in a given year, when it was first celebrated, when first proclaimed, the rule for how it is calculated in words and an authority to go to for more information. Also calculates the nearest weekday to any given holiday, when you actually get the day off. This is what I refer to by the term shifted. Boxing day has special shift handling.

Keywords: holidays holiday calculator calendar martin luther king day inauguration day robbie burns day groundhog day valentines day ash wednesday lincolns birthday presidents day washingtons birthday alberta family day st patricks day statistical data

Prepare googlesitemap....

SiteMap

Prepare googlesitemap.gz a Google Spidering sitemap. To speed spidering, and ensure the most important files get spidered frequently, Google has created a system where you leave a compressed catalog of all your files on the website for it to find. The program creates that file. https://www.google.com/webmasters/sitemaps/docs/en/faq.html For it to take effect, in this beta program, you must register your site and the name of the file with Google. To use the program, you must configure three files: sitemapconfig.properties : defines where you website files are. See the sample. files.csv : defines files you want google to handle specially. They have comma-separated fields 1. directory (relative to root of website, root is blank) 2. file (including .html) 3. frequency of update, e.g. weekly 4. priority. You may not include comments. The meaning of these frequency and priority file is defined at https://www.google.com/webmasters/sitemaps/docs/en/faq.html. The program automatically generates the lastmod. directories.csv : defines which directories you want google to look at, and some facts about them. All files in each directory menotions will be treated the same way, unless there is a special entry for it in files.csv. It has comma-separated fields: 1. directory (relative to root of website, root is blank) 2. frequency of update, e.g. weekly 3. priority. The program looks in the current working directory for all three files. You invoke it with: java -jar sitemap.jar Full source is included.

Keywords: sitemap google catalog spidering website directory basic elements

 

Page 3 out of 7    1 2 3 4 5 6 7

  Search for:      

Copyright (C) 2003-2008 FilesLand.com