| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 18 Jan 2026 20:22:30 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070728043326
location: https://web.archive.org/web/20070728043326/https://junitconv.dev.java.net/
server-timing: captures_list;dur=0.489130, exclusion.robots;dur=0.034011, exclusion.robots.policy;dur=0.024081, esindex;dur=0.009449, cdx.remote;dur=64.103007, LoadShardBlock;dur=83.045697, PetaboxLoader3.datanode;dur=78.530868
x-app-server: wwwb-app220-dc8
x-ts: 302
x-tr: 170
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app220; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 18 Jan 2026 20:22:31 GMT
content-type: text/html;charset=UTF-8
x-archive-orig-date: Sat, 28 Jul 2007 04:33:29 GMT
x-archive-orig-server: Apache
x-archive-orig-x-powered-by: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
x-archive-orig-pragma:
x-archive-orig-cache-control: private,max-age=0,must-revalidate
x-archive-orig-helmloginid: guest
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: windows-1258
memento-datetime: Sat, 28 Jul 2007 04:33:26 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: IA-AROUND-THE-WORLD-2007-20070728041241-05321-crawling021-c/IA-AROUND-THE-WORLD-2007-20070728043233-09795-crawling01.us.archive.org.arc.gz
server-timing: captures_list;dur=0.506452, exclusion.robots;dur=0.016905, exclusion.robots.policy;dur=0.007620, esindex;dur=0.010966, cdx.remote;dur=27.579914, LoadShardBlock;dur=268.749000, PetaboxLoader3.datanode;dur=126.211270, PetaboxLoader3.resolve;dur=159.816429, load_resource;dur=195.270172
x-app-server: wwwb-app220-dc8
x-ts: 200
x-tr: 556
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
junitconv: Home
|
junitconv
|
| Summary | Universal Units of Measure Converter built as a Java Applet |
|---|---|
| Categories | None |
| License | GNU General Public License (GPL v. 2.0) |
| Owner(s) | nicolaasuni |
| Name | JUnitConv |
| Version | 1.0.003 |
| Date | 2006-10-18 |
| Author | Nicola Asuni |
| Copyright | Tecnick.com S.r.l. Via Ugo Foscolo n.19 09045 Quartu Sant'Elena (CA) ITALY www.tecnick.com |
| License | GNU LESSER GENERAL PUBLIC LICENSE v.2.1 |
Source Code and Documentation
Description
JUnitConv is an universal Units of Measure Converter, it converts numbers from one unit of measure to another.Built as a Java Applet, JUnitConv is platform-independent and highly-configurable, it supports an unlimited number of Units Categories, Units of Measure and Multiplier Prefixes that could be customized using external text files. You could setup your own data files using your preferred spoken language, units categories, units definitions and multiplier prefixes. The default configuration data files contains 580 basic units of measure definitions divided in 31 categories and 27 multiplier prefixes for a total of 15660 composed units.
Main Features
- browser-independent, works fine with any browser that support at least Java 1.1
- 580 basic units of measure definitions divided in 31 categories and 27 multiplier prefixes
- customizables units, categories, multipliers and labels using external text files
- supports units descriptions, used to display units definitions and history (if available)
- supports multiplier prefixes
- supports basic formulas as units conversion parameters
- supports result precision (max number of decimal places)
- customizables charset encoding, supports international character sets (require appropriate OS/browsers)
- customizables background and foreground colors
- customizables font type, style and size
Note: the conversion accuracy is influenced by a couple of factors such as client machine precision and units data definitions.
Example
Setup
To display the JUnitConv, copy the .jar file on your site and add the applet tag to your XHTML/HTML document. To customize quickly the applet, I suggest to cut and paste the applet tag code used in the online example and modify it to fit your needs.The following tables illustrates the meaning and function of each parameter.
| Applet Attributes (<applet attribute_name="attribute_value" ... >) | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The following are the main applet parameters.
| Main Parameters (<param name="param_name" value="param_value" />) | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Customize Units
Conversion Formula
All conversions are performed using the following formula:OV = ( ( IV · IS · IMIP ) + IO - OO ) / ( OS · OMOP)
where:
- IV = Input Value
- IS = Input Conversion Factor
- IM = Input Multiplier Value
- IP = Input Multiplier Exponent
- IO = Input Conversion Offset
- OV = Output Value
- OS = Output Conversion Factor
- OM = Output Multiplier Value
- OP = Output Multiplier Exponent
- OO = Output Conversion Offset
Data Files
Labels, Categories, Units and Multipliers are specified on external text files (data files). These data files can be changed manually using a simple text editor or using a spreadsheet editor such as Microsoft Excel (open and save files using the Tab delimited Text format).Tab delimited Text means that each file row identify one element (one category, one unit, one multiplier or one label). Each row terminate with newline character '\n' (rows separator). The data values of each single element are separated by tabulation character '\t' (columns separator), even if not present.
labels_data_file
On this file each row represent one JUnitConv label (field name).multiplier_data_file
This file contains the Multiplier Prefixes definitions (e.g.: k = kilo = 103 = 1000)The columns fields are:
categories_data_file
This file contains the Units Categories Names.The row number of each category represent the CATEGORY_ID index.
units_data_file
This file contains the Units of Measure definitions.The columns fields are:
- CATEGORY_ID (see the previous categories_data_file description)
- symbol
- name
- conversion factor (IS or OS on formula), the reference unit has value 1
- offset (IO or OO on formula), it's used to convert between temperatures scales, normally it's zero
- unit multiplier exponent (IP or OP on formula), for example this has value 1 on meters, 2 on m2 and 3 on m3
- description
Numeric Fields
On data files, each numeric field support scientific notation (e.g.: 3.7E-2 = 3.7 · 10-2 = 0.037) but can be also specified using basic formulas and constants.On formulas the following symbols are used (in order of precedence):
- P = Pi = 3.14159...
- X = e = 2.71828...
- * = multiplication
- / = division
- + = sum
- - = difference
- ^ = power elevation
Examples:
- P/180^2 = (Pi/180)2 = 3.046174...
- 1+3.7E-2 = 1 + (3.7 · 10-2) = 1.037
- 5^3-1 = 53-1 = 52 = 25
- 72*4.55/25.4 = (72 · 4.55) / 25.4 = 12.8976...
References
The following documents, books and software applications has been used as reference to build the default units data file (unitdata.txt).- The Jargon Dictionary
- NIST Definitions of the SI base units
- NIST Handbook 44,Appendix C
- MegaConverter2
- Celsius, Fahrenheit, Kelvin, Réaumur,and Rankine Temperature Conversion
- Unit Conversion Table
- Angle Conversion Factors
- Mils Versus Mils Versus Mils By Joe Huffman
- Measures from Antiquity and the Bible
- G. Biondo, E. Sacchi - Manuale di Elettronica e telecomunicazioni - HOEPLI
Open Source projects from the same author >>
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |
