
JAVA ADVANCED IMAGING SAMPLE INPUT/OUTPUT SOURCE CODE
LICENSE VERSION 1.1.1


SUN WILL LICENSE THE JAVA ADVANCED IMAGING SAMPLE INPUT/OUTPUT CODE IN SOURCE CODE FORM TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT
ALL OF THE TERMS CONTAINED IN THIS LICENSE AGREEMENT ("LICENSE").  PLEASE READ
THE TERMS CONTAINED IN THE AGREEMENT CAREFULLY.  BY DOWNLOADING THIS SOFTWARE,
YOU ACCEPT THE TERMS AND CONDITIONS OF THIS LICENSE.  IF YOU ARE NOT WILLING TO
BE BOUND BY ITS TERMS, SELECT THE "DO NOT ACCEPT" BUTTON AT THE BOTTOM OF THIS
PAGE AND THE DOWNLOADING PROCESS WILL NOT CONTINUE.  IF YOU ARE WILLING TO BE
BOUND BY THE TERMS OF THIS LICENSE, SELECT THE "ACCEPT" BUTTON TO CONTINUE.

1.0 DEFINITIONS

1.1 Commercial Use means distribution or otherwise making the Original Code
available to a third party.

1.2 Electronic Distribution Mechanism means a mechanism generally accepted in
the software development community for the electronic transfer of data.

1.3 Executable means Original Code in any form other than Source Code.

1.4 Initial Developer means the individual or entity identified as the Initial
Developer in the Source Code notice required by Exhibit A.

1.5 Larger Work means a work which combines Original Code or Modifications, or
portions thereof, with code not governed by the terms of this License.

1.6 License means this document.

1.7 Licensable means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently acquired, any and all
of the rights conveyed herein.

1.8 Modifications means any addition to or deletion from the substance or
structure of either the Original Code or any previous Modifications.  A
Modification is:

A.  Any addition to or deletion from the contents of a file containing Original
Code or previous Modifications.

B.  Any new file that contains any part of the Original Code or previous
Modifications.

1.11 Original Code means Source Code of computer software code which is
described in the Source Code notice required by Exhibit A as Original Code.

1.12 Patent Claims means any patent claim(s), now owned or hereafter acquired,
including without limitation, method, process, and apparatus claims, in any
patent Licensable by grantor.

1.13 Source Code means the preferred form of the Original Code for making
modifications to it, including all modules it contains, plus any associated
interface definition files, or scripts used to control compilation and
installation of an Executable.

1.14 You (or Your ) means an individual or a legal entity exercising rights
under, and complying with all of the terms of, this License or a future version
of this License issued under Section 6.1.  For legal entities, You includes any
entity which controls, is controlled by, or is under common control with You.
For purposes of this definition, "control means (a) the power, direct or
indirect, to cause the direction or management of such entity, whether by
contract or otherwise, or (b) ownership of more than fifty percent (50%) of the
outstanding shares or beneficial ownership of such entity.

2.0 SOURCE CODE LICENSE

2.1 The Initial Developer Grants The Initial Developer hereby grants You a
world-wide, royalty-free, non-exclusive license, subject to third party
intellectual property claims:

(a) under intellectual property rights (other than patent or trademark)
Licensable by Initial Developer to use, reproduce, modify, display, perform,
sublicense and distribute the Original Code (or portions thereof) with or
without Modifications, and/or as part of a Larger Work; and

(b) under Patents Claims infringed by the making, using or selling of Original
Code, to make, have made, use, practice, sell, and offer for sale, and/or
otherwise dispose of the Original Code (or portions thereof).

(c) the licenses granted in this Section 2.1(a) and (b) are effective on the
date You download or otherwise receive the Original Code under the terms of this
License.

(d) Notwithstanding Section 2.1(b) above, no patent license is granted:  1) for
code that You delete from the Original Code; 2) separate from the Original Code;
or 3) for infringements caused by:  i) the modification of the Original Code or
ii) the combination of the Original Code with other software or devices,
including but not limited to Modifications.

(e) No right, title or interest in or to the Original Code, or any trademarks,
service marks, or trade names of the Initial Developer are granted under this
License.

3.0 DISTRIBUTION OBLIGATIONS

3.1 Application of License.  The Source Code version of Original Code may be
distributed only under the terms of this License or a future version of this
License released under Section 6.1, and You must include a copy of this License
with every copy of the Source Code You distribute.  You may not offer or impose
any terms on any Source Code version that alters or restricts the applicable
version of this License or the recipients rights hereunder.

3.2 Required Notices.  You must duplicate the notice in Exhibit A in each file
of the Source Code.  If it is not possible to put such notice in a particular
Source Code file due to its structure, then You must include such notice in a
location (such as a relevant directory) where a user would be likely to look for
such a notice.  If You created one or more Modification(s) You may add Your name
as a Contributor to the notice described in Exhibit A.  You must also duplicate
this License in any documentation for the Source Code where You describe
recipients rights or ownership rights relating to Original Code.

You may choose to offer, and to charge a fee for, warranty, support, indemnity
or liability obligations to one or more recipients of Your version of the Code.
However, You may do so only on Your own behalf, and not on behalf of the Initial
Developer.  You must make it absolutely clear than any such warranty, support,
indemnity or liability obligation is offered by You alone, and You hereby agree
to indemnify the Initial Developer for any liability incurred by the Initial
Developer as a result of warranty, support, indemnity or liability terms You
offer.

3.3 Distribution of Executable Versions.  You may distribute Original Code in
Executable and Source form only if the requirements of Sections 3.1 and 3.2 have
been met for that Original Code, and if You include a notice stating that the
Source Code version of the Original Code is available under the terms of this
License.  The notice must be conspicuously included in any notice in an
Executable or Source versions, related documentation or collateral in which You
describe recipients rights relating to the Original Code.  You may distribute
the Executable and Source versions of Your version of the Code or ownership
rights under a license of Your choice, which may contain terms different from
this License, provided that You are in compliance with the terms of this
License.  If You distribute the Executable and Source versions under a different
license You must make it absolutely clear that any terms which differ from this
License are offered by You alone, not by the Initial Developer.  You hereby
agree to indemnify the Initial Developer for any liability incurred by the
Initial Developer as a result of any such terms You offer.

3.4 Larger Works.  You may create a Larger Work by combining Original Code
and/or Modifications with other code not governed by the terms of this License
and distribute the Larger Work as a single product.  In such a case, You must
make sure the requirements of this License are fulfilled for the Original Code.

4.0 INABILITY TO COMPLY DUE TO STATUTE OR REGULATION

If it is impossible for You to comply with any of the terms of this License with
respect to some or all of the Original Code due to statute, judicial order, or
regulation then You must:  (a) comply with the terms of this License to the
maximum extent possible; and (b) describe the limitations and the code they
affect.  Such description must be included in the LEGAL file described in
Section 3.2 and must be included with all distributions of the Source Code.
Except to the extent prohibited by statute or regulation, such description must
be sufficiently detailed for a recipient of ordinary skill to be able to
understand it.

5.0 APPLICATION OF THIS LICENSE

This License applies to code to which the Initial Developer has attached the
notice in Exhibit A as set out in Section 3.1.

6.0 VERSIONS OF THE LICENSE

6.1 New Versions.  Sun may publish revised and/or new versions of the License
from time to time.  Each version will be given a distinguishing version number.

6.2 Effect of New Versions.  Once Original Code has been published under a
particular version of the License, You may always continue to use it under the
terms of that version.  You may also choose to use such Original Code under the
terms of any subsequent version of the License published by Sun.  No one other
than Sun has the right to modify the terms applicable to Original Code.

7.0 DISCLAIMER OF WARRANTY, SUPPORT AND FUTURE COMPATABILITY

7.1 ORIGINAL CODE IS PROVIDED UNDER THIS LICENSE ON AN AS IS BASIS,WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,INCLUDING, WITHOUT LIMITATION,
WARRANTIES THAT THE ORIGINAL CODE IS FREE OF DEFECTS, MERCHANTABILITY, FIT FOR A
PARTICULAR PURPOSE OR NON-INFRINGING.  THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE ORIGINAL CODE IS WITH YOU.  SHOULD ANY ORIGINAL CODE PROVE
DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER) ASSUME THE COST OF ANY
NECESSARY SERVICING, REPAIR OR CORRECTION.  THIS DISCLAIMER OF WARRANTY
CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.  NO USE OF ANY ORIGINAL CODE IS
AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.

7.2 SUN WILL NOT PROVIDE ANY SUPPORT FOR THE ORIGINAL CODE AFTER ITS RELEASE,
AND SUN ANTICIPATES THAT IT WILL ADOPT NEW AND DIFFERENT INTERFACES IN THE NEAR
FUTURE.  LICENSEE WILL DEFEND AND INDEMNIFY SUN AGAINST ANY CLAIMS BASED ON
LICENSEE'S USE OF THE ORIGINAL CODE, AND FROM CLAIMS THAT LATER VERSIONS OF JAVA
ADVANCED IMAGING ARE INCOMPATIBLE WITH THE ORIGINAL CODE PROVIDED TO LICENSEE
UNDER THIS LICENSE, OR ANY MODIFICATIONS OR LARGER WORKS CREATED BY LICENSEE.
THIS DISCLAIMER OF SUPPORT AND COMPATABILITY CONSTITUTES AN ESSENTIAL PART OF
THIS LICENSE.  NO USE OF ANY ORIGINAL CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER
THIS DISCLAIMER.

8.0 TERMINATION

8.1 This License and the rights granted hereunder will terminate automatically,
and without any further notice from or action by the Initial Developer, if You
fail to comply with terms herein and fail to cure such breach within 30 days of
becoming aware of the breach.  All sublicenses to the Original Code which are
properly granted shall survive any termination of this License.  Provisions
which, by their nature, must remain in effect beyond the termination of this
License shall survive.

8.2 In the event of termination under Section 8.1 above, all end user license
agreements (excluding distributors and revelers) which have been validly granted
by You or any distributor hereunder prior to termination shall survive
termination.

9.0 LIMIT OF LIABILITY

UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER
CONTRIBUTOR, OR ANY DISTRIBUTOR OF ORIGINAL CODE, OR ANY SUPPLIER OF ANY OF SUCH
PARTIES, BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES
FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND
ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.  THIS LIMITATION OF LIABILITY SHALL
NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY S
NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION.  SOME
JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.

10.0 U.S.  GOVERNMENT END USERS

If this Software is being acquired by or on behalf of the U.S.  Government or by
a U.S.  Government prime contractor or subcontractor (at any tier), then the
Government s rights in the Software and accompanying documentation shall be only
as set forth in this license; this is in accordance with 48 C.F.R.  227.7201
through 227.7202-4 (for Department of Defense (DoD) acquisitions) and with 48
C.F.R.  2.101 and 12.212 (for non-DoD acquisitions).

11.0 MISCELLANEOUS

This License represents the complete agreement concerning subject matter hereof.
If any provision of this License is held to be unenforceable, such provision
shall be reformed only to the extent necessary to make it enforceable.  The
software delivered under this License is subject to U.S.  export control laws
and may be subject to export or import regulations in other countries.  You
agree to comply strictly with all such laws and regulations and acknowledge that
You have a responsibility to obtain such licenses to export, re-export or import
as may be required after delivery to You.  This License shall be governed by
California law provisions (except to the extent applicable law, if any, provides
otherwise), excluding its conflict-of-law provisions.  With respect to disputes
in which at least one party is a citizen of, or an entity chartered or
registered to do business in the United States of America, any litigation
relating to this License shall be subject to the jurisdiction of the Federal
Courts of the Northern District of California, with venue lying in Santa!  Clara
County, California, with the losing party responsible for costs, including
without limitation, court costs and reasonable attorneys fees and expenses.  The
application of the United Nations Convention on Contracts for the International
Sale of Goods is expressly excluded.  Any law or regulation which provides that
the language of a contract shall be construed against the drafter shall not
apply to this License.


EXHIBIT A - JAVA ADVANCED IMAGING SAMPLE INPUT-OUTPUT 
SOURCE CODE LICENSE

Copyright (c) [insert year or string of years] Sun Microsystems, Inc. All 
Rights Reserved.

Redistribution and use in source and binary forms, with or without 
modification, are permitted provided that the following conditions are met:

-Redistributions of source code must retain the above copyright notice, this 
list of conditions and the following disclaimer.

-Redistribution in binary form must reproduce the above copyright notice, this 
list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

Neither the name of Sun Microsystems, Inc. or the names of contributors may be 
used to endorse or promote products derived from this software without 
specific prior written permission.
 
This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
 
You acknowledge that Software is not designed,licensed or intended for use in 
the design, construction, operation or maintenance of any nuclear facility.
