LICENSE
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:24k
源码类别:

搜索引擎

开发平台:

Java

  1. GNU Lesser Public Licensee
  2. Version 2.1, February 1999
  3. Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  4. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  5. Everyone is permitted to copy and distribute verbatim copies
  6. of this license document, but changing it is not allowed.
  7. [This is the first released version of the Lesser GPL. It also counts
  8. as the successor of the GNU Library Public License, version 2, hence
  9. the version number 2.1.]
  10. Preamble
  11. The licenses for most software are designed to take away your freedom to share
  12. and change it. By contrast, the GNU General Public Licenses are intended to
  13. guarantee your freedom to share and change free software--to make sure the
  14. software is free for all its users.
  15. This license, the Lesser General Public License, applies to some specially
  16. designated software packages--typically libraries--of the Free Software
  17. Foundation and other authors who decide to use it. You can use it too, but we
  18. suggest you first think carefully about whether this license or the ordinary
  19. General Public License is the better strategy to use in any particular case,
  20. based on the explanations below.
  21. When we speak of free software, we are referring to freedom of use, not price.
  22. Our General Public Licenses are designed to make sure that you have the freedom
  23. to distribute copies of free software (and charge for this service if you wish);
  24. that you receive source code or can get it if you want it; that you can change
  25. the software and use pieces of it in new free programs; and that you are 
  26. informed that you can do these things.
  27. To protect your rights, we need to make restrictions that forbid distributors
  28. to deny you these rights or to ask you to surrender these rights. These
  29. restrictions translate to certain responsibilities for you if you distribute
  30. copies of the library or if you modify it.
  31. For example, if you distribute copies of the library, whether gratis or for a
  32. fee, you must give the recipients all the rights that we gave you. You must
  33. make sure that they, too, receive or can get the source code. If you link other
  34. code with the library, you must provide complete object files to the
  35. recipients, so that they can relink them with the library after making changes
  36. to the library and recompiling it. And you must show them these terms so they
  37. know their rights.
  38. We protect your rights with a two-step method: (1) we copyright the library,
  39. and (2) we offer you this license, which gives you legal permission to copy,
  40. distribute and/or modify the library.
  41. To protect each distributor, we want to make it very clear that there is no
  42. warranty for the free library. Also, if the library is modified by someone else
  43. and passed on, the recipients should know that what they have is not the
  44. original version, so that the original author's reputation will not be affected
  45. by problems that might be introduced by others.
  46. Finally, software patents pose a constant threat to the existence of any free
  47. program. We wish to make sure that a company cannot effectively restrict the
  48. users of a free program by obtaining a restrictive license from a patent
  49. holder. Therefore, we insist that any patent license obtained for a version of
  50. the library must be consistent with the full freedom of use specified in this
  51. license.
  52. Most GNU software, including some libraries, is covered by the ordinary GNU
  53. General Public License. This license, the GNU Lesser General Public License,
  54. applies to certain designated libraries, and is quite different from the
  55. ordinary General Public License. We use this license for certain libraries in
  56. order to permit linking those libraries into non-free programs.
  57. When a program is linked with a library, whether statically or using a shared
  58. library, the combination of the two is legally speaking a combined work, a
  59. derivative of the original library. The ordinary General Public License
  60. therefore permits such linking only if the entire combination fits its criteria
  61. of freedom. The Lesser General Public License permits more lax criteria for
  62. linking other code with the library.
  63. We call this license the "Lesser" General Public License because it does Less
  64. to protect the user's freedom than the ordinary General Public License. It also
  65. provides other free software developers Less of an advantage over competing
  66. non-free programs. These disadvantages are the reason we use the ordinary
  67. General Public License for many libraries. However, the Lesser license provides
  68. advantages in certain special circumstances.
  69. For example, on rare occasions, there may be a special need to encourage the
  70. widest possible use of a certain library, so that it becomes a de-facto
  71. standard. To achieve this, non-free programs must be allowed to use the
  72. library. A more frequent case is that a free library does the same job as
  73. widely used non-free libraries. In this case, there is little to gain by
  74. limiting the free library to free software only, so we use the Lesser General
  75. Public License.
  76. In other cases, permission to use a particular library in non-free programs
  77. enables a greater number of people to use a large body of free software. For
  78. example, permission to use the GNU C Library in non-free programs enables many
  79. more people to use the whole GNU operating system, as well as its variant, the
  80. GNU/Linux operating system.
  81. Although the Lesser General Public License is Less protective of the users'
  82. freedom, it does ensure that the user of a program that is linked with the
  83. Library has the freedom and the wherewithal to run that program using a
  84. modified version of the Library.
  85. The precise terms and conditions for copying, distribution and modification
  86. follow. Pay close attention to the difference between a "work based on the
  87. library" and a "work that uses the library". The former contains code derived
  88. from the library, whereas the latter must be combined with the library in order
  89. to run.
  90. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  91. 0. This License Agreement applies to any software library or other program
  92. which contains a notice placed by the copyright holder or other authorized
  93. party saying it may be distributed under the terms of this Lesser General
  94. Public License (also called "this License"). Each licensee is addressed as
  95. "you".
  96. A "library" means a collection of software functions and/or data prepared so as
  97. to be conveniently linked with application programs (which use some of those
  98. functions and data) to form executables.
  99. The "Library", below, refers to any such software library or work which has
  100. been distributed under these terms. A "work based on the Library" means either
  101. the Library or any derivative work under copyright law: that is to say, a work
  102. containing the Library or a portion of it, either verbatim or with
  103. modifications and/or translated straightforwardly into another language.
  104. (Hereinafter, translation is included without limitation in the term
  105. "modification".)
  106. "Source code" for a work means the preferred form of the work for making
  107. modifications to it. For a library, complete source code means all the source
  108. code for all modules it contains, plus any associated interface definition
  109. files, plus the scripts used to control compilation and installation of the
  110. library.
  111. Activities other than copying, distribution and modification are not covered by
  112. this License; they are outside its scope. The act of running a program using
  113. the Library is not restricted, and output from such a program is covered only
  114. if its contents constitute a work based on the Library (independent of the use
  115. of the Library in a tool for writing it). Whether that is true depends on what
  116. the Library does and what the program that uses the Library does.
  117. 1. You may copy and distribute verbatim copies of the Library's complete source
  118. code as you receive it, in any medium, provided that you conspicuously and
  119. appropriately publish on each copy an appropriate copyright notice and
  120. disclaimer of warranty; keep intact all the notices that refer to this License
  121. and to the absence of any warranty; and distribute a copy of this License along
  122. with the Library.
  123. You may charge a fee for the physical act of transferring a copy, and you may
  124. at your option offer warranty protection in exchange for a fee.
  125. 2. You may modify your copy or copies of the Library or any portion of it, thus
  126. forming a work based on the Library, and copy and distribute such modifications
  127. or work under the terms of Section 1 above, provided that you also meet all of
  128. these conditions:
  129. a) The modified work must itself be a software library.
  130. b) You must cause the files modified to carry prominent notices stating that
  131. you changed the files and the date of any change.
  132. c) You must cause the whole of the work to be licensed at no charge to all
  133. third parties under the terms of this License.
  134. d) If a facility in the modified Library refers to a function or a table of
  135. data to be supplied by an application program that uses the facility, other
  136. than as an argument passed when the facility is invoked, then you must make a
  137. good faith effort to ensure that, in the event an application does not supply
  138. such function or table, the facility still operates, and performs whatever part
  139. of its purpose remains meaningful.
  140. (For example, a function in a library to compute square roots has a purpose
  141. that is entirely well-defined independent of the application. Therefore,
  142. Subsection 2d requires that any application-supplied function or table used by
  143. this function must be optional: if the application does not supply it, the
  144. square root function must still compute square roots.)
  145. These requirements apply to the modified work as a whole. If identifiable
  146. sections of that work are not derived from the Library, and can be reasonably
  147. considered independent and separate works in themselves, then this License, and
  148. its terms, do not apply to those sections when you distribute them as separate
  149. works. But when you distribute the same sections as part of a whole which is a
  150. work based on the Library, the distribution of the whole must be on the terms
  151. of this License, whose permissions for other licensees extend to the entire
  152. whole, and thus to each and every part regardless of who wrote it.
  153. Thus, it is not the intent of this section to claim rights or contest your
  154. rights to work written entirely by you; rather, the intent is to exercise the
  155. right to control the distribution of derivative or collective works based on
  156. the Library.
  157. In addition, mere aggregation of another work not based on the Library with the
  158. Library (or with a work based on the Library) on a volume of a storage or
  159. distribution medium does not bring the other work under the scope of this
  160. License.
  161. 3. You may opt to apply the terms of the ordinary GNU General Public License
  162. instead of this License to a given copy of the Library. To do this, you must
  163. alter all the notices that refer to this License, so that they refer to the
  164. ordinary GNU General Public License, version 2, instead of to this License. (If
  165. a newer version than version 2 of the ordinary GNU General Public License has
  166. appeared, then you can specify that version instead if you wish.) Do not make
  167. any other change in these notices.
  168. Once this change is made in a given copy, it is irreversible for that copy, so
  169. the ordinary GNU General Public License applies to all subsequent copies and
  170. derivative works made from that copy.
  171. This option is useful when you wish to copy part of the code of the Library
  172. into a program that is not a library.
  173. 4. You may copy and distribute the Library (or a portion or derivative of it,
  174. under Section 2) in object code or executable form under the terms of Sections
  175. 1 and 2 above provided that you accompany it with the complete corresponding
  176. machine-readable source code, which must be distributed under the terms of
  177. Sections 1 and 2 above on a medium customarily used for software interchange.
  178. If distribution of object code is made by offering access to copy from a
  179. designated place, then offering equivalent access to copy the source code from
  180. the same place satisfies the requirement to distribute the source code, even
  181. though third parties are not compelled to copy the source along with the object
  182. code.
  183. 5. A program that contains no derivative of any portion of the Library, but is
  184. designed to work with the Library by being compiled or linked with it, is
  185. called a "work that uses the Library". Such a work, in isolation, is not a
  186. derivative work of the Library, and therefore falls outside the scope of this
  187. License.
  188. However, linking a "work that uses the Library" with the Library creates an
  189. executable that is a derivative of the Library (because it contains portions of
  190. the Library), rather than a "work that uses the library". The executable is
  191. therefore covered by this License. Section 6 states terms for distribution of
  192. such executables.
  193. When a "work that uses the Library" uses material from a header file that is
  194. part of the Library, the object code for the work may be a derivative work of
  195. the Library even though the source code is not. Whether this is true is
  196. especially significant if the work can be linked without the Library, or if the
  197. work is itself a library. The threshold for this to be true is not precisely
  198. defined by law.
  199. If such an object file uses only numerical parameters, data structure layouts
  200. and accessors, and small macros and small inline functions (ten lines or less
  201. in length), then the use of the object file is unrestricted, regardless of
  202. whether it is legally a derivative work. (Executables containing this object
  203. code plus portions of the Library will still fall under Section 6.)
  204. Otherwise, if the work is a derivative of the Library, you may distribute the
  205. object code for the work under the terms of Section 6. Any executables
  206. containing that work also fall under Section 6, whether or not they are linked
  207. directly with the Library itself.
  208. 6. As an exception to the Sections above, you may also combine or link a "work
  209. that uses the Library" with the Library to produce a work containing portions
  210. of the Library, and distribute that work under terms of your choice, provided
  211. that the terms permit modification of the work for the customer's own use and
  212. reverse engineering for debugging such modifications.
  213. You must give prominent notice with each copy of the work that the Library is
  214. used in it and that the Library and its use are covered by this License. You
  215. must supply a copy of this License. If the work during execution displays
  216. copyright notices, you must include the copyright notice for the Library among
  217. them, as well as a reference directing the user to the copy of this License.
  218. Also, you must do one of these things:
  219. a) Accompany the work with the complete corresponding machine-readable source
  220. code for the Library including whatever changes were used in the work (which
  221. must be distributed under Sections 1 and 2 above); and, if the work is an
  222. executable linked with the Library, with the complete machine-readable "work
  223. that uses the Library", as object code and/or source code, so that the user can
  224. modify the Library and then relink to produce a modified executable containing
  225. the modified Library. (It is understood that the user who changes the contents
  226. of definitions files in the Library will not necessarily be able to recompile
  227. the application to use the modified definitions.)
  228. b) Use a suitable shared library mechanism for linking with the Library. A
  229. suitable mechanism is one that (1) uses at run time a copy of the library
  230. already present on the user's computer system, rather than copying library
  231. functions into the executable, and (2) will operate properly with a modified
  232. version of the library, if the user installs one, as long as the modified
  233. version is interface-compatible with the version that the work was made with.
  234. c) Accompany the work with a written offer, valid for at least three years, to
  235. give the same user the materials specified in Subsection 6a, above, for a
  236. charge no more than the cost of performing this distribution.
  237. d) If distribution of the work is made by offering access to copy from a
  238. designated place, offer equivalent access to copy the above specified materials
  239. from the same place.
  240. e) Verify that the user has already received a copy of these materials or that
  241. you have already sent this user a copy.
  242. For an executable, the required form of the "work that uses the Library" must
  243. include any data and utility programs needed for reproducing the executable
  244. from it. However, as a special exception, the materials to be distributed need
  245. not include anything that is normally distributed (in either source or binary
  246. form) with the major components (compiler, kernel, and so on) of the operating
  247. system on which the executable runs, unless that component itself accompanies
  248. the executable.
  249. It may happen that this requirement contradicts the license restrictions of
  250. other proprietary libraries that do not normally accompany the operating
  251. system. Such a contradiction means you cannot use both them and the Library
  252. together in an executable that you distribute.
  253. 7. You may place library facilities that are a work based on the Library
  254. side-by-side in a single library together with other library facilities not
  255. covered by this License, and distribute such a combined library, provided that
  256. the separate distribution of the work based on the Library and of the other
  257. library facilities is otherwise permitted, and provided that you do these two
  258. things:
  259. a) Accompany the combined library with a copy of the same work based on the
  260. Library, uncombined with any other library facilities. This must be distributed
  261. under the terms of the Sections above.
  262. b) Give prominent notice with the combined library of the fact that part of it
  263. is a work based on the Library, and explaining where to find the accompanying
  264. uncombined form of the same work.
  265. 8. You may not copy, modify, sublicense, link with, or distribute the Library
  266. except as expressly provided under this License. Any attempt otherwise to copy,
  267. modify, sublicense, link with, or distribute the Library is void, and will
  268. automatically terminate your rights under this License. However, parties who
  269. have received copies, or rights, from you under this License will not have
  270. their licenses terminated so long as such parties remain in full compliance.
  271. 9. You are not required to accept this License, since you have not signed it.
  272. However, nothing else grants you permission to modify or distribute the Library
  273. or its derivative works. These actions are prohibited by law if you do not
  274. accept this License. Therefore, by modifying or distributing the Library (or
  275. any work based on the Library), you indicate your acceptance of this License to
  276. do so, and all its terms and conditions for copying, distributing or modifying
  277. the Library or works based on it.
  278. 10. Each time you redistribute the Library (or any work based on the Library),
  279. the recipient automatically receives a license from the original licensor to
  280. copy, distribute, link with or modify the Library subject to these terms and
  281. conditions. You may not impose any further restrictions on the recipients'
  282. exercise of the rights granted herein. You are not responsible for enforcing
  283. compliance by third parties with this License.
  284. 11. If, as a consequence of a court judgment or allegation of patent
  285. infringement or for any other reason (not limited to patent issues), conditions
  286. are imposed on you (whether by court order, agreement or otherwise) that
  287. contradict the conditions of this License, they do not excuse you from the
  288. conditions of this License. If you cannot distribute so as to satisfy
  289. simultaneously your obligations under this License and any other pertinent
  290. obligations, then as a consequence you may not distribute the Library at all.
  291. For example, if a patent license would not permit royalty-free redistribution
  292. of the Library by all those who receive copies directly or indirectly through
  293. you, then the only way you could satisfy both it and this License would be to
  294. refrain entirely from distribution of the Library.
  295. If any portion of this section is held invalid or unenforceable under any
  296. particular circumstance, the balance of the section is intended to apply, and
  297. the section as a whole is intended to apply in other circumstances.
  298. It is not the purpose of this section to induce you to infringe any patents or
  299. other property right claims or to contest validity of any such claims; this
  300. section has the sole purpose of protecting the integrity of the free software
  301. distribution system which is implemented by public license practices. Many
  302. people have made generous contributions to the wide range of software
  303. distributed through that system in reliance on consistent application of that
  304. system; it is up to the author/donor to decide if he or she is willing to
  305. distribute software through any other system and a licensee cannot impose that
  306. choice.
  307. This section is intended to make thoroughly clear what is believed to be a
  308. consequence of the rest of this License.
  309. 12. If the distribution and/or use of the Library is restricted in certain
  310. countries either by patents or by copyrighted interfaces, the original
  311. copyright holder who places the Library under this License may add an explicit
  312. geographical distribution limitation excluding those countries, so that
  313. distribution is permitted only in or among countries not thus excluded. In such
  314. case, this License incorporates the limitation as if written in the body of
  315. this License.
  316. 13. The Free Software Foundation may publish revised and/or new versions of the
  317. Lesser General Public License from time to time. Such new versions will be
  318. similar in spirit to the present version, but may differ in detail to address
  319. new problems or concerns.
  320. Each version is given a distinguishing version number. If the Library specifies
  321. a version number of this License which applies to it and "any later version",
  322. you have the option of following the terms and conditions either of that
  323. version or of any later version published by the Free Software Foundation. If
  324. the Library does not specify a license version number, you may choose any
  325. version ever published by the Free Software Foundation.
  326. 14. If you wish to incorporate parts of the Library into other free programs
  327. whose distribution conditions are incompatible with these, write to the author
  328. to ask for permission. For software which is copyrighted by the Free Software
  329. Foundation, write to the Free Software Foundation; we sometimes make exceptions
  330. for this. Our decision will be guided by the two goals of preserving the free
  331. status of all derivatives of our free software and of promoting the sharing and
  332. reuse of software generally.
  333. NO WARRANTY
  334. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
  335. THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
  336. STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
  337. LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  338. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  339. FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
  340. PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU
  341. ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  342. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
  343. ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE
  344. LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
  345. GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  346. INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  347. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
  348. FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER
  349. OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  350. END OF TERMS AND CONDITIONS