Revision | b4c50dc096830b5f5f6c05b3275034e4c0359f18 (tree) |
---|---|
Zeit | 2022-05-04 12:55:17 |
Autor | Hiroshi Miura <miurahr@linu...> |
Commiter | Hiroshi Miura |
Update license notifications
- Use SPDX ID for copyright header of sources
- Add SPDX ID to README
- Rename COPYING to LICENSE.txt
- Add COPYING
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@@ -1,34 +1,26 @@ | ||
1 | -DictZip library for Java and command line utility. | |
1 | +DictZip library for Java is provided under | |
2 | 2 | |
3 | -Copyright (C) 2001-2004 Ho Ngoc Duc | |
3 | + SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
4 | 4 | |
5 | -Copyright (C) 2016 Hiroshi Miura | |
5 | +Dictzip command line utility is provided under | |
6 | 6 | |
7 | -Some part of this program are come from a part of jdictd 1.5 on java. | |
7 | + SPDX-License-Identifier: GPL-2.0-or-later | |
8 | 8 | |
9 | -DictZip command line utility is distributed under the terms of GNU General | |
10 | -Public License Version 2 or (at your option) any later version. | |
9 | +Northside-io library is provided under | |
11 | 10 | |
12 | -DictZip library is distributed under the terms of the GNU General Public License | |
13 | -Version 2 or (at your option) any later version with the following clarification | |
14 | -and special exception as same as GNU classpath. | |
11 | + SPDX-License-Identifier: Apache-2.0 | |
15 | 12 | |
16 | -Linking this library statically or dynamically with other modules is making | |
17 | -a combined work based on this library. Thus, the terms and conditions of | |
18 | -the GNU General Public License cover the whole combination. | |
13 | +Being under the terms of the GNU General Public License version 2 and later, | |
14 | +according with: | |
19 | 15 | |
20 | -As a special exception, the copyright holders of this library give you permission | |
21 | -to link this library with independent modules to produce an executable, regardless | |
22 | -of the license terms of these independent modules, and to copy and distribute | |
23 | -the resulting executable under terms of your choice, provided that you also meet, | |
24 | -for each linked independent module, the terms and conditions of the license of | |
25 | -that module. An independent module is a module which is not derived from or based on | |
26 | -this library. If you modify this library, you may extend this exception to | |
27 | -your version of the library, but you are not obligated to do so. If you do not wish | |
28 | -to do so, delete this exception statement from your version. | |
16 | + LICENSES/GPL-2.0 | |
29 | 17 | |
30 | -As such, it can be used to run, create and distribute a large class of applications | |
31 | -and applets. When this library is used unmodified as the core class library | |
32 | -for a virtual machine, compiler for the java languge, or for a program written | |
33 | -in the java programming language it does not affect the licensing for distributing | |
34 | -those programs directly. | |
18 | +With a classpath exception, as stated at: | |
19 | + | |
20 | + LICENSES/Classpath-exception-2.0 | |
21 | + | |
22 | +Apache 2.0 license is stated at: | |
23 | + | |
24 | + LICENSES/Apache-2.0 | |
25 | + | |
26 | +All contributions to the Dictzip are subject to this COPYING file. |
@@ -0,0 +1,22 @@ | ||
1 | +SPDX-Exception-Identifier: Classpath-exception-2.0 | |
2 | +SPDX-URL: https://spdx.org/licenses/Classpath-exception-2.0.html | |
3 | +SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+, GPL-2.0-only, GPL-2.0-or-later | |
4 | +Usage-Guide: | |
5 | + The Classpath exception clause to the GPL was approved by the FSF to resolve compatibility | |
6 | + concerns that arose with the combination of GNU Classpath and Java. | |
7 | + The text of the exception was taken from http://www.gnu.org/software/classpath/license.html | |
8 | + on December 31, 2009. | |
9 | + To use this exception add it with the keyword WITH to one of the | |
10 | + identifiers in the SPDX-Licenses tag: | |
11 | + SPDX-License-Identifier: <SPDX-License> WITH classpath-exception-2.0 | |
12 | +License-Text: | |
13 | + Linking this library statically or dynamically with other modules is making a combined work based on this library. | |
14 | + Thus, the terms and conditions of the GNU General Public License cover the whole combination. | |
15 | + | |
16 | + As a special exception, the copyright holders of this library give you permission to link this library with | |
17 | + independent modules to produce an executable, regardless of the license terms of these independent modules, and to | |
18 | + copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each | |
19 | + linked independent module, the terms and conditions of the license of that module. An independent module is a | |
20 | + module which is not derived from or based on this library. If you modify this library, you may extend this | |
21 | + exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete | |
22 | + this exception statement from your version. |
@@ -0,0 +1,209 @@ | ||
1 | +Valid-License-Identifier: Apache-2.0 | |
2 | +SPDX-URL: https://spdx.org/licenses/Apache-2.0.html | |
3 | +Usage-Guide: | |
4 | + To use this license in source code, put one of the following SPDX | |
5 | + tag/value pairs into a comment according to the placement | |
6 | + guidelines in the licensing rules documentation. | |
7 | + SPDX-License-Identifier: Apache-2.0 | |
8 | +License-Text: | |
9 | + Apache License | |
10 | + Version 2.0, January 2004 | |
11 | + http://www.apache.org/licenses/ | |
12 | + | |
13 | + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
14 | + | |
15 | + 1. Definitions. | |
16 | + | |
17 | + "License" shall mean the terms and conditions for use, reproduction, | |
18 | + and distribution as defined by Sections 1 through 9 of this document. | |
19 | + | |
20 | + "Licensor" shall mean the copyright owner or entity authorized by | |
21 | + the copyright owner that is granting the License. | |
22 | + | |
23 | + "Legal Entity" shall mean the union of the acting entity and all | |
24 | + other entities that control, are controlled by, or are under common | |
25 | + control with that entity. For the purposes of this definition, | |
26 | + "control" means (i) the power, direct or indirect, to cause the | |
27 | + direction or management of such entity, whether by contract or | |
28 | + otherwise, or (ii) ownership of fifty percent (50%) or more of the | |
29 | + outstanding shares, or (iii) beneficial ownership of such entity. | |
30 | + | |
31 | + "You" (or "Your") shall mean an individual or Legal Entity | |
32 | + exercising permissions granted by this License. | |
33 | + | |
34 | + "Source" form shall mean the preferred form for making modifications, | |
35 | + including but not limited to software source code, documentation | |
36 | + source, and configuration files. | |
37 | + | |
38 | + "Object" form shall mean any form resulting from mechanical | |
39 | + transformation or translation of a Source form, including but | |
40 | + not limited to compiled object code, generated documentation, | |
41 | + and conversions to other media types. | |
42 | + | |
43 | + "Work" shall mean the work of authorship, whether in Source or | |
44 | + Object form, made available under the License, as indicated by a | |
45 | + copyright notice that is included in or attached to the work | |
46 | + (an example is provided in the Appendix below). | |
47 | + | |
48 | + "Derivative Works" shall mean any work, whether in Source or Object | |
49 | + form, that is based on (or derived from) the Work and for which the | |
50 | + editorial revisions, annotations, elaborations, or other modifications | |
51 | + represent, as a whole, an original work of authorship. For the purposes | |
52 | + of this License, Derivative Works shall not include works that remain | |
53 | + separable from, or merely link (or bind by name) to the interfaces of, | |
54 | + the Work and Derivative Works thereof. | |
55 | + | |
56 | + "Contribution" shall mean any work of authorship, including | |
57 | + the original version of the Work and any modifications or additions | |
58 | + to that Work or Derivative Works thereof, that is intentionally | |
59 | + submitted to Licensor for inclusion in the Work by the copyright owner | |
60 | + or by an individual or Legal Entity authorized to submit on behalf of | |
61 | + the copyright owner. For the purposes of this definition, "submitted" | |
62 | + means any form of electronic, verbal, or written communication sent | |
63 | + to the Licensor or its representatives, including but not limited to | |
64 | + communication on electronic mailing lists, source code control systems, | |
65 | + and issue tracking systems that are managed by, or on behalf of, the | |
66 | + Licensor for the purpose of discussing and improving the Work, but | |
67 | + excluding communication that is conspicuously marked or otherwise | |
68 | + designated in writing by the copyright owner as "Not a Contribution." | |
69 | + | |
70 | + "Contributor" shall mean Licensor and any individual or Legal Entity | |
71 | + on behalf of whom a Contribution has been received by Licensor and | |
72 | + subsequently incorporated within the Work. | |
73 | + | |
74 | + 2. Grant of Copyright License. Subject to the terms and conditions of | |
75 | + this License, each Contributor hereby grants to You a perpetual, | |
76 | + worldwide, non-exclusive, no-charge, royalty-free, irrevocable | |
77 | + copyright license to reproduce, prepare Derivative Works of, | |
78 | + publicly display, publicly perform, sublicense, and distribute the | |
79 | + Work and such Derivative Works in Source or Object form. | |
80 | + | |
81 | + 3. Grant of Patent License. Subject to the terms and conditions of | |
82 | + this License, each Contributor hereby grants to You a perpetual, | |
83 | + worldwide, non-exclusive, no-charge, royalty-free, irrevocable | |
84 | + (except as stated in this section) patent license to make, have made, | |
85 | + use, offer to sell, sell, import, and otherwise transfer the Work, | |
86 | + where such license applies only to those patent claims licensable | |
87 | + by such Contributor that are necessarily infringed by their | |
88 | + Contribution(s) alone or by combination of their Contribution(s) | |
89 | + with the Work to which such Contribution(s) was submitted. If You | |
90 | + institute patent litigation against any entity (including a | |
91 | + cross-claim or counterclaim in a lawsuit) alleging that the Work | |
92 | + or a Contribution incorporated within the Work constitutes direct | |
93 | + or contributory patent infringement, then any patent licenses | |
94 | + granted to You under this License for that Work shall terminate | |
95 | + as of the date such litigation is filed. | |
96 | + | |
97 | + 4. Redistribution. You may reproduce and distribute copies of the | |
98 | + Work or Derivative Works thereof in any medium, with or without | |
99 | + modifications, and in Source or Object form, provided that You | |
100 | + meet the following conditions: | |
101 | + | |
102 | + (a) You must give any other recipients of the Work or | |
103 | + Derivative Works a copy of this License; and | |
104 | + | |
105 | + (b) You must cause any modified files to carry prominent notices | |
106 | + stating that You changed the files; and | |
107 | + | |
108 | + (c) You must retain, in the Source form of any Derivative Works | |
109 | + that You distribute, all copyright, patent, trademark, and | |
110 | + attribution notices from the Source form of the Work, | |
111 | + excluding those notices that do not pertain to any part of | |
112 | + the Derivative Works; and | |
113 | + | |
114 | + (d) If the Work includes a "NOTICE" text file as part of its | |
115 | + distribution, then any Derivative Works that You distribute must | |
116 | + include a readable copy of the attribution notices contained | |
117 | + within such NOTICE file, excluding those notices that do not | |
118 | + pertain to any part of the Derivative Works, in at least one | |
119 | + of the following places: within a NOTICE text file distributed | |
120 | + as part of the Derivative Works; within the Source form or | |
121 | + documentation, if provided along with the Derivative Works; or, | |
122 | + within a display generated by the Derivative Works, if and | |
123 | + wherever such third-party notices normally appear. The contents | |
124 | + of the NOTICE file are for informational purposes only and | |
125 | + do not modify the License. You may add Your own attribution | |
126 | + notices within Derivative Works that You distribute, alongside | |
127 | + or as an addendum to the NOTICE text from the Work, provided | |
128 | + that such additional attribution notices cannot be construed | |
129 | + as modifying the License. | |
130 | + | |
131 | + You may add Your own copyright statement to Your modifications and | |
132 | + may provide additional or different license terms and conditions | |
133 | + for use, reproduction, or distribution of Your modifications, or | |
134 | + for any such Derivative Works as a whole, provided Your use, | |
135 | + reproduction, and distribution of the Work otherwise complies with | |
136 | + the conditions stated in this License. | |
137 | + | |
138 | + 5. Submission of Contributions. Unless You explicitly state otherwise, | |
139 | + any Contribution intentionally submitted for inclusion in the Work | |
140 | + by You to the Licensor shall be under the terms and conditions of | |
141 | + this License, without any additional terms or conditions. | |
142 | + Notwithstanding the above, nothing herein shall supersede or modify | |
143 | + the terms of any separate license agreement you may have executed | |
144 | + with Licensor regarding such Contributions. | |
145 | + | |
146 | + 6. Trademarks. This License does not grant permission to use the trade | |
147 | + names, trademarks, service marks, or product names of the Licensor, | |
148 | + except as required for reasonable and customary use in describing the | |
149 | + origin of the Work and reproducing the content of the NOTICE file. | |
150 | + | |
151 | + 7. Disclaimer of Warranty. Unless required by applicable law or | |
152 | + agreed to in writing, Licensor provides the Work (and each | |
153 | + Contributor provides its Contributions) on an "AS IS" BASIS, | |
154 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | |
155 | + implied, including, without limitation, any warranties or conditions | |
156 | + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | |
157 | + PARTICULAR PURPOSE. You are solely responsible for determining the | |
158 | + appropriateness of using or redistributing the Work and assume any | |
159 | + risks associated with Your exercise of permissions under this License. | |
160 | + | |
161 | + 8. Limitation of Liability. In no event and under no legal theory, | |
162 | + whether in tort (including negligence), contract, or otherwise, | |
163 | + unless required by applicable law (such as deliberate and grossly | |
164 | + negligent acts) or agreed to in writing, shall any Contributor be | |
165 | + liable to You for damages, including any direct, indirect, special, | |
166 | + incidental, or consequential damages of any character arising as a | |
167 | + result of this License or out of the use or inability to use the | |
168 | + Work (including but not limited to damages for loss of goodwill, | |
169 | + work stoppage, computer failure or malfunction, or any and all | |
170 | + other commercial damages or losses), even if such Contributor | |
171 | + has been advised of the possibility of such damages. | |
172 | + | |
173 | + 9. Accepting Warranty or Additional Liability. While redistributing | |
174 | + the Work or Derivative Works thereof, You may choose to offer, | |
175 | + and charge a fee for, acceptance of support, warranty, indemnity, | |
176 | + or other liability obligations and/or rights consistent with this | |
177 | + License. However, in accepting such obligations, You may act only | |
178 | + on Your own behalf and on Your sole responsibility, not on behalf | |
179 | + of any other Contributor, and only if You agree to indemnify, | |
180 | + defend, and hold each Contributor harmless for any liability | |
181 | + incurred by, or claims asserted against, such Contributor by reason | |
182 | + of your accepting any such warranty or additional liability. | |
183 | + | |
184 | + END OF TERMS AND CONDITIONS | |
185 | + | |
186 | + APPENDIX: How to apply the Apache License to your work. | |
187 | + | |
188 | + To apply the Apache License to your work, attach the following | |
189 | + boilerplate notice, with the fields enclosed by brackets "[]" | |
190 | + replaced with your own identifying information. (Don't include | |
191 | + the brackets!) The text should be enclosed in the appropriate | |
192 | + comment syntax for the file format. We also recommend that a | |
193 | + file or class name and description of purpose be included on the | |
194 | + same "printed page" as the copyright notice for easier | |
195 | + identification within third-party archives. | |
196 | + | |
197 | + Copyright [yyyy] [name of copyright owner] | |
198 | + | |
199 | + Licensed under the Apache License, Version 2.0 (the "License"); | |
200 | + you may not use this file except in compliance with the License. | |
201 | + You may obtain a copy of the License at | |
202 | + | |
203 | + http://www.apache.org/licenses/LICENSE-2.0 | |
204 | + | |
205 | + Unless required by applicable law or agreed to in writing, software | |
206 | + distributed under the License is distributed on an "AS IS" BASIS, | |
207 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
208 | + See the License for the specific language governing permissions and | |
209 | + limitations under the License. |
@@ -0,0 +1,357 @@ | ||
1 | +Valid-License-Identifier: GPL-2.0 | |
2 | +Valid-License-Identifier: GPL-2.0-only | |
3 | +Valid-License-Identifier: GPL-2.0+ | |
4 | +Valid-License-Identifier: GPL-2.0-or-later | |
5 | +SPDX-URL: https://spdx.org/licenses/GPL-2.0.html | |
6 | +Usage-Guide: | |
7 | + To use this license in source code, put one of the following SPDX | |
8 | + tag/value pairs into a comment according to the placement | |
9 | + guidelines in the licensing rules documentation. | |
10 | + For 'GNU General Public License (GPL) version 2 only' use: | |
11 | + SPDX-License-Identifier: GPL-2.0 | |
12 | + or | |
13 | + SPDX-License-Identifier: GPL-2.0-only | |
14 | + For 'GNU General Public License (GPL) version 2 or any later version' use: | |
15 | + SPDX-License-Identifier: GPL-2.0+ | |
16 | + or | |
17 | + SPDX-License-Identifier: GPL-2.0-or-later | |
18 | +License-Text: | |
19 | + GNU GENERAL PUBLIC LICENSE | |
20 | + Version 2, June 1991 | |
21 | + | |
22 | + Copyright (C) 1989, 1991 Free Software Foundation, Inc., | |
23 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
24 | + Everyone is permitted to copy and distribute verbatim copies | |
25 | + of this license document, but changing it is not allowed. | |
26 | + | |
27 | + Preamble | |
28 | + | |
29 | + The licenses for most software are designed to take away your | |
30 | +freedom to share and change it. By contrast, the GNU General Public | |
31 | +License is intended to guarantee your freedom to share and change free | |
32 | +software--to make sure the software is free for all its users. This | |
33 | +General Public License applies to most of the Free Software | |
34 | +Foundation's software and to any other program whose authors commit to | |
35 | +using it. (Some other Free Software Foundation software is covered by | |
36 | +the GNU Lesser General Public License instead.) You can apply it to | |
37 | +your programs, too. | |
38 | + | |
39 | + When we speak of free software, we are referring to freedom, not | |
40 | +price. Our General Public Licenses are designed to make sure that you | |
41 | +have the freedom to distribute copies of free software (and charge for | |
42 | +this service if you wish), that you receive source code or can get it | |
43 | +if you want it, that you can change the software or use pieces of it | |
44 | +in new free programs; and that you know you can do these things. | |
45 | + | |
46 | + To protect your rights, we need to make restrictions that forbid | |
47 | +anyone to deny you these rights or to ask you to surrender the rights. | |
48 | +These restrictions translate to certain responsibilities for you if you | |
49 | +distribute copies of the software, or if you modify it. | |
50 | + | |
51 | + For example, if you distribute copies of such a program, whether | |
52 | +gratis or for a fee, you must give the recipients all the rights that | |
53 | +you have. You must make sure that they, too, receive or can get the | |
54 | +source code. And you must show them these terms so they know their | |
55 | +rights. | |
56 | + | |
57 | + We protect your rights with two steps: (1) copyright the software, and | |
58 | +(2) offer you this license which gives you legal permission to copy, | |
59 | +distribute and/or modify the software. | |
60 | + | |
61 | + Also, for each author's protection and ours, we want to make certain | |
62 | +that everyone understands that there is no warranty for this free | |
63 | +software. If the software is modified by someone else and passed on, we | |
64 | +want its recipients to know that what they have is not the original, so | |
65 | +that any problems introduced by others will not reflect on the original | |
66 | +authors' reputations. | |
67 | + | |
68 | + Finally, any free program is threatened constantly by software | |
69 | +patents. We wish to avoid the danger that redistributors of a free | |
70 | +program will individually obtain patent licenses, in effect making the | |
71 | +program proprietary. To prevent this, we have made it clear that any | |
72 | +patent must be licensed for everyone's free use or not licensed at all. | |
73 | + | |
74 | + The precise terms and conditions for copying, distribution and | |
75 | +modification follow. | |
76 | + | |
77 | + GNU GENERAL PUBLIC LICENSE | |
78 | + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
79 | + | |
80 | + 0. This License applies to any program or other work which contains | |
81 | +a notice placed by the copyright holder saying it may be distributed | |
82 | +under the terms of this General Public License. The "Program", below, | |
83 | +refers to any such program or work, and a "work based on the Program" | |
84 | +means either the Program or any derivative work under copyright law: | |
85 | +that is to say, a work containing the Program or a portion of it, | |
86 | +either verbatim or with modifications and/or translated into another | |
87 | +language. (Hereinafter, translation is included without limitation in | |
88 | +the term "modification".) Each licensee is addressed as "you". | |
89 | + | |
90 | +Activities other than copying, distribution and modification are not | |
91 | +covered by this License; they are outside its scope. The act of | |
92 | +running the Program is not restricted, and the output from the Program | |
93 | +is covered only if its contents constitute a work based on the | |
94 | +Program (independent of having been made by running the Program). | |
95 | +Whether that is true depends on what the Program does. | |
96 | + | |
97 | + 1. You may copy and distribute verbatim copies of the Program's | |
98 | +source code as you receive it, in any medium, provided that you | |
99 | +conspicuously and appropriately publish on each copy an appropriate | |
100 | +copyright notice and disclaimer of warranty; keep intact all the | |
101 | +notices that refer to this License and to the absence of any warranty; | |
102 | +and give any other recipients of the Program a copy of this License | |
103 | +along with the Program. | |
104 | + | |
105 | +You may charge a fee for the physical act of transferring a copy, and | |
106 | +you may at your option offer warranty protection in exchange for a fee. | |
107 | + | |
108 | + 2. You may modify your copy or copies of the Program or any portion | |
109 | +of it, thus forming a work based on the Program, and copy and | |
110 | +distribute such modifications or work under the terms of Section 1 | |
111 | +above, provided that you also meet all of these conditions: | |
112 | + | |
113 | + a) You must cause the modified files to carry prominent notices | |
114 | + stating that you changed the files and the date of any change. | |
115 | + | |
116 | + b) You must cause any work that you distribute or publish, that in | |
117 | + whole or in part contains or is derived from the Program or any | |
118 | + part thereof, to be licensed as a whole at no charge to all third | |
119 | + parties under the terms of this License. | |
120 | + | |
121 | + c) If the modified program normally reads commands interactively | |
122 | + when run, you must cause it, when started running for such | |
123 | + interactive use in the most ordinary way, to print or display an | |
124 | + announcement including an appropriate copyright notice and a | |
125 | + notice that there is no warranty (or else, saying that you provide | |
126 | + a warranty) and that users may redistribute the program under | |
127 | + these conditions, and telling the user how to view a copy of this | |
128 | + License. (Exception: if the Program itself is interactive but | |
129 | + does not normally print such an announcement, your work based on | |
130 | + the Program is not required to print an announcement.) | |
131 | + | |
132 | +These requirements apply to the modified work as a whole. If | |
133 | +identifiable sections of that work are not derived from the Program, | |
134 | +and can be reasonably considered independent and separate works in | |
135 | +themselves, then this License, and its terms, do not apply to those | |
136 | +sections when you distribute them as separate works. But when you | |
137 | +distribute the same sections as part of a whole which is a work based | |
138 | +on the Program, the distribution of the whole must be on the terms of | |
139 | +this License, whose permissions for other licensees extend to the | |
140 | +entire whole, and thus to each and every part regardless of who wrote it. | |
141 | + | |
142 | +Thus, it is not the intent of this section to claim rights or contest | |
143 | +your rights to work written entirely by you; rather, the intent is to | |
144 | +exercise the right to control the distribution of derivative or | |
145 | +collective works based on the Program. | |
146 | + | |
147 | +In addition, mere aggregation of another work not based on the Program | |
148 | +with the Program (or with a work based on the Program) on a volume of | |
149 | +a storage or distribution medium does not bring the other work under | |
150 | +the scope of this License. | |
151 | + | |
152 | + 3. You may copy and distribute the Program (or a work based on it, | |
153 | +under Section 2) in object code or executable form under the terms of | |
154 | +Sections 1 and 2 above provided that you also do one of the following: | |
155 | + | |
156 | + a) Accompany it with the complete corresponding machine-readable | |
157 | + source code, which must be distributed under the terms of Sections | |
158 | + 1 and 2 above on a medium customarily used for software interchange; or, | |
159 | + | |
160 | + b) Accompany it with a written offer, valid for at least three | |
161 | + years, to give any third party, for a charge no more than your | |
162 | + cost of physically performing source distribution, a complete | |
163 | + machine-readable copy of the corresponding source code, to be | |
164 | + distributed under the terms of Sections 1 and 2 above on a medium | |
165 | + customarily used for software interchange; or, | |
166 | + | |
167 | + c) Accompany it with the information you received as to the offer | |
168 | + to distribute corresponding source code. (This alternative is | |
169 | + allowed only for noncommercial distribution and only if you | |
170 | + received the program in object code or executable form with such | |
171 | + an offer, in accord with Subsection b above.) | |
172 | + | |
173 | +The source code for a work means the preferred form of the work for | |
174 | +making modifications to it. For an executable work, complete source | |
175 | +code means all the source code for all modules it contains, plus any | |
176 | +associated interface definition files, plus the scripts used to | |
177 | +control compilation and installation of the executable. However, as a | |
178 | +special exception, the source code distributed need not include | |
179 | +anything that is normally distributed (in either source or binary | |
180 | +form) with the major components (compiler, kernel, and so on) of the | |
181 | +operating system on which the executable runs, unless that component | |
182 | +itself accompanies the executable. | |
183 | + | |
184 | +If distribution of executable or object code is made by offering | |
185 | +access to copy from a designated place, then offering equivalent | |
186 | +access to copy the source code from the same place counts as | |
187 | +distribution of the source code, even though third parties are not | |
188 | +compelled to copy the source along with the object code. | |
189 | + | |
190 | + 4. You may not copy, modify, sublicense, or distribute the Program | |
191 | +except as expressly provided under this License. Any attempt | |
192 | +otherwise to copy, modify, sublicense or distribute the Program is | |
193 | +void, and will automatically terminate your rights under this License. | |
194 | +However, parties who have received copies, or rights, from you under | |
195 | +this License will not have their licenses terminated so long as such | |
196 | +parties remain in full compliance. | |
197 | + | |
198 | + 5. You are not required to accept this License, since you have not | |
199 | +signed it. However, nothing else grants you permission to modify or | |
200 | +distribute the Program or its derivative works. These actions are | |
201 | +prohibited by law if you do not accept this License. Therefore, by | |
202 | +modifying or distributing the Program (or any work based on the | |
203 | +Program), you indicate your acceptance of this License to do so, and | |
204 | +all its terms and conditions for copying, distributing or modifying | |
205 | +the Program or works based on it. | |
206 | + | |
207 | + 6. Each time you redistribute the Program (or any work based on the | |
208 | +Program), the recipient automatically receives a license from the | |
209 | +original licensor to copy, distribute or modify the Program subject to | |
210 | +these terms and conditions. You may not impose any further | |
211 | +restrictions on the recipients' exercise of the rights granted herein. | |
212 | +You are not responsible for enforcing compliance by third parties to | |
213 | +this License. | |
214 | + | |
215 | + 7. If, as a consequence of a court judgment or allegation of patent | |
216 | +infringement or for any other reason (not limited to patent issues), | |
217 | +conditions are imposed on you (whether by court order, agreement or | |
218 | +otherwise) that contradict the conditions of this License, they do not | |
219 | +excuse you from the conditions of this License. If you cannot | |
220 | +distribute so as to satisfy simultaneously your obligations under this | |
221 | +License and any other pertinent obligations, then as a consequence you | |
222 | +may not distribute the Program at all. For example, if a patent | |
223 | +license would not permit royalty-free redistribution of the Program by | |
224 | +all those who receive copies directly or indirectly through you, then | |
225 | +the only way you could satisfy both it and this License would be to | |
226 | +refrain entirely from distribution of the Program. | |
227 | + | |
228 | +If any portion of this section is held invalid or unenforceable under | |
229 | +any particular circumstance, the balance of the section is intended to | |
230 | +apply and the section as a whole is intended to apply in other | |
231 | +circumstances. | |
232 | + | |
233 | +It is not the purpose of this section to induce you to infringe any | |
234 | +patents or other property right claims or to contest validity of any | |
235 | +such claims; this section has the sole purpose of protecting the | |
236 | +integrity of the free software distribution system, which is | |
237 | +implemented by public license practices. Many people have made | |
238 | +generous contributions to the wide range of software distributed | |
239 | +through that system in reliance on consistent application of that | |
240 | +system; it is up to the author/donor to decide if he or she is willing | |
241 | +to distribute software through any other system and a licensee cannot | |
242 | +impose that choice. | |
243 | + | |
244 | +This section is intended to make thoroughly clear what is believed to | |
245 | +be a consequence of the rest of this License. | |
246 | + | |
247 | + 8. If the distribution and/or use of the Program is restricted in | |
248 | +certain countries either by patents or by copyrighted interfaces, the | |
249 | +original copyright holder who places the Program under this License | |
250 | +may add an explicit geographical distribution limitation excluding | |
251 | +those countries, so that distribution is permitted only in or among | |
252 | +countries not thus excluded. In such case, this License incorporates | |
253 | +the limitation as if written in the body of this License. | |
254 | + | |
255 | + 9. The Free Software Foundation may publish revised and/or new versions | |
256 | +of the General Public License from time to time. Such new versions will | |
257 | +be similar in spirit to the present version, but may differ in detail to | |
258 | +address new problems or concerns. | |
259 | + | |
260 | +Each version is given a distinguishing version number. If the Program | |
261 | +specifies a version number of this License which applies to it and "any | |
262 | +later version", you have the option of following the terms and conditions | |
263 | +either of that version or of any later version published by the Free | |
264 | +Software Foundation. If the Program does not specify a version number of | |
265 | +this License, you may choose any version ever published by the Free Software | |
266 | +Foundation. | |
267 | + | |
268 | + 10. If you wish to incorporate parts of the Program into other free | |
269 | +programs whose distribution conditions are different, write to the author | |
270 | +to ask for permission. For software which is copyrighted by the Free | |
271 | +Software Foundation, write to the Free Software Foundation; we sometimes | |
272 | +make exceptions for this. Our decision will be guided by the two goals | |
273 | +of preserving the free status of all derivatives of our free software and | |
274 | +of promoting the sharing and reuse of software generally. | |
275 | + | |
276 | + NO WARRANTY | |
277 | + | |
278 | + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
279 | +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
280 | +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
281 | +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
282 | +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
283 | +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
284 | +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
285 | +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
286 | +REPAIR OR CORRECTION. | |
287 | + | |
288 | + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
289 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
290 | +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
291 | +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
292 | +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
293 | +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
294 | +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
295 | +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
296 | +POSSIBILITY OF SUCH DAMAGES. | |
297 | + | |
298 | + END OF TERMS AND CONDITIONS | |
299 | + | |
300 | + How to Apply These Terms to Your New Programs | |
301 | + | |
302 | + If you develop a new program, and you want it to be of the greatest | |
303 | +possible use to the public, the best way to achieve this is to make it | |
304 | +free software which everyone can redistribute and change under these terms. | |
305 | + | |
306 | + To do so, attach the following notices to the program. It is safest | |
307 | +to attach them to the start of each source file to most effectively | |
308 | +convey the exclusion of warranty; and each file should have at least | |
309 | +the "copyright" line and a pointer to where the full notice is found. | |
310 | + | |
311 | + <one line to give the program's name and a brief idea of what it does.> | |
312 | + Copyright (C) <year> <name of author> | |
313 | + | |
314 | + This program is free software; you can redistribute it and/or modify | |
315 | + it under the terms of the GNU General Public License as published by | |
316 | + the Free Software Foundation; either version 2 of the License, or | |
317 | + (at your option) any later version. | |
318 | + | |
319 | + This program is distributed in the hope that it will be useful, | |
320 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
321 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
322 | + GNU General Public License for more details. | |
323 | + | |
324 | + You should have received a copy of the GNU General Public License along | |
325 | + with this program; if not, write to the Free Software Foundation, Inc., | |
326 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
327 | + | |
328 | +Also add information on how to contact you by electronic and paper mail. | |
329 | + | |
330 | +If the program is interactive, make it output a short notice like this | |
331 | +when it starts in an interactive mode: | |
332 | + | |
333 | + Gnomovision version 69, Copyright (C) year name of author | |
334 | + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
335 | + This is free software, and you are welcome to redistribute it | |
336 | + under certain conditions; type `show c' for details. | |
337 | + | |
338 | +The hypothetical commands `show w' and `show c' should show the appropriate | |
339 | +parts of the General Public License. Of course, the commands you use may | |
340 | +be called something other than `show w' and `show c'; they could even be | |
341 | +mouse-clicks or menu items--whatever suits your program. | |
342 | + | |
343 | +You should also get your employer (if you work as a programmer) or your | |
344 | +school, if any, to sign a "copyright disclaimer" for the program, if | |
345 | +necessary. Here is a sample; alter the names: | |
346 | + | |
347 | + Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
348 | + `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
349 | + | |
350 | + <signature of Ty Coon>, 1 April 1989 | |
351 | + Ty Coon, President of Vice | |
352 | + | |
353 | +This General Public License does not permit incorporating your program into | |
354 | +proprietary programs. If your program is a subroutine library, you may | |
355 | +consider it more useful to permit linking proprietary applications with the | |
356 | +library. If this is what you want to do, use the GNU Lesser General | |
357 | +Public License instead of this License. |
@@ -28,39 +28,13 @@ It is recommended to post an issue before sending a patch. | ||
28 | 28 | Dictzip-java is mirrored to https://gitlab.com/dictzip/dictzip-java periodically and automatically. |
29 | 29 | Please raise issues and merge-request on main project site https://github.com/dictzip/dictzip-java |
30 | 30 | |
31 | -## Copyrights and License | |
31 | +## Copyright | |
32 | 32 | |
33 | -DictZip library for Java and command line utility. | |
33 | +- Copyright (C) 2001-2004 Ho Ngoc Duc | |
34 | +- Copyright (C) 2016-2022 Hiroshi Miura | |
34 | 35 | |
35 | -Copyright (C) 2001-2004 Ho Ngoc Duc | |
36 | +Some part are come from a part of jdictd 1.5 on java. | |
36 | 37 | |
37 | -Copyright (C) 2016-2022 Hiroshi Miura | |
38 | +## License | |
38 | 39 | |
39 | -Some part of this program are come from a part of jdictd 1.5 on java. | |
40 | - | |
41 | -DictZip command line utility is distributed under the terms of GNU General | |
42 | -Public License Version 2 or (at your option) any later version. | |
43 | - | |
44 | -DictZip library is distributed under the terms of the GNU General Public License | |
45 | -Version 2 or (at your option) any later version with the following clarification | |
46 | -and special exception as same as GNU classpath. | |
47 | - | |
48 | -Linking this library statically or dynamically with other modules is making | |
49 | -a combined work based on this library. Thus, the terms and conditions of | |
50 | -the GNU General Public License cover the whole combination. | |
51 | - | |
52 | -As a special exception, the copyright holders of this library give you permission | |
53 | -to link this library with independent modules to produce an executable, regardless | |
54 | -of the license terms of these independent modules, and to copy and distribute | |
55 | -the resulting executable under terms of your choice, provided that you also meet, | |
56 | -for each linked independent module, the terms and conditions of the license of | |
57 | -that module. An independent module is a module which is not derived from or based on | |
58 | -this library. If you modify this library, you may extend this exception to | |
59 | -your version of the library, but you are not obligated to do so. If you do not wish | |
60 | -to do so, delete this exception statement from your version. | |
61 | - | |
62 | -As such, it can be used to run, create and distribute a large class of applications | |
63 | -and applets. When this library is used unmodified as the core class library | |
64 | -for a virtual machine, compiler for the java languge, or for a program written | |
65 | -in the java programming language it does not affect the licensing for distributing | |
66 | -those programs directly. | |
40 | +Please see COPYING. |
@@ -1,19 +1,9 @@ | ||
1 | 1 | /* |
2 | - * Copyright (C) 2016 Hiroshi Miura | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This program is free software; you can redistribute it and/or | |
5 | - * modify it under the terms of the GNU General Public License | |
6 | - * as published by the Free Software Foundation; either version 2 | |
7 | - * of the License, or (at your option) any later version. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
8 | 5 | * |
9 | - * This program is distributed in the hope that it will be useful, | |
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | - * GNU General Public License for more details. | |
13 | - * | |
14 | - * You should have received a copy of the GNU General Public License | |
15 | - * along with this program; if not, write to the Free Software | |
16 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package org.dict.zip.cli; |
@@ -1,19 +1,9 @@ | ||
1 | 1 | /* |
2 | - * Copyright (C) 2016 Hiroshi Miura | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This program is free software; you can redistribute it and/or | |
5 | - * modify it under the terms of the GNU General Public License | |
6 | - * as published by the Free Software Foundation; either version 2 | |
7 | - * of the License, or (at your option) any later version. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
8 | 5 | * |
9 | - * This program is distributed in the hope that it will be useful, | |
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | - * GNU General Public License for more details. | |
13 | - * | |
14 | - * You should have received a copy of the GNU General Public License | |
15 | - * along with this program; if not, write to the Free Software | |
16 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package org.dict.zip.cli; |
@@ -1,29 +1,22 @@ | ||
1 | 1 | /* |
2 | - * Copyright (C) 2016 Hiroshi Miura | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This program is free software; you can redistribute it and/or | |
5 | - * modify it under the terms of the GNU General Public License | |
6 | - * as published by the Free Software Foundation; either version 2 | |
7 | - * of the License, or (at your option) any later version. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
8 | 5 | * |
9 | - * This program is distributed in the hope that it will be useful, | |
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | - * GNU General Public License for more details. | |
13 | - * | |
14 | - * You should have received a copy of the GNU General Public License | |
15 | - * along with this program; if not, write to the Free Software | |
16 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package org.dict.zip.cli; |
20 | 10 | |
21 | -import java.io.EOFException; | |
22 | -import java.io.File; | |
23 | -import java.io.FileInputStream; | |
24 | -import java.io.IOException; | |
25 | -import java.io.OutputStream; | |
26 | -import java.io.RandomAccessFile; | |
11 | +import org.dict.zip.DictZipHeader.CompressionLevel; | |
12 | +import org.dict.zip.DictZipInputStream; | |
13 | +import org.dict.zip.DictZipOutputStream; | |
14 | +import org.dict.zip.RandomAccessInputStream; | |
15 | +import org.dict.zip.RandomAccessOutputStream; | |
16 | +import org.jetbrains.annotations.NotNull; | |
17 | +import org.jetbrains.annotations.Nullable; | |
18 | + | |
19 | +import java.io.*; | |
27 | 20 | import java.nio.file.Path; |
28 | 21 | import java.nio.file.Paths; |
29 | 22 | import java.text.Format; |
@@ -34,15 +27,6 @@ import java.util.ResourceBundle; | ||
34 | 27 | import java.util.zip.Deflater; |
35 | 28 | |
36 | 29 | |
37 | -import org.dict.zip.DictZipHeader.CompressionLevel; | |
38 | -import org.dict.zip.DictZipInputStream; | |
39 | -import org.dict.zip.DictZipOutputStream; | |
40 | -import org.dict.zip.RandomAccessInputStream; | |
41 | -import org.dict.zip.RandomAccessOutputStream; | |
42 | -import org.jetbrains.annotations.NotNull; | |
43 | -import org.jetbrains.annotations.Nullable; | |
44 | - | |
45 | - | |
46 | 30 | /** |
47 | 31 | * Dictionary data handling class. |
48 | 32 | * @author Hiroshi Miura |
@@ -1,19 +1,9 @@ | ||
1 | 1 | /* |
2 | - * Copyright (C) 2016 Hiroshi Miura | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This program is free software; you can redistribute it and/or | |
5 | - * modify it under the terms of the GNU General Public License | |
6 | - * as published by the Free Software Foundation; either version 2 | |
7 | - * of the License, or (at your option) any later version. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
8 | 5 | * |
9 | - * This program is distributed in the hope that it will be useful, | |
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | - * GNU General Public License for more details. | |
13 | - * | |
14 | - * You should have received a copy of the GNU General Public License | |
15 | - * along with this program; if not, write to the Free Software | |
16 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package org.dict.zip.cli; |
@@ -1,23 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip command line interface. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This is a part of DictZip-java library. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
5 | 5 | * |
6 | - * Copyright (C) 2016,2022 Hiroshi Miura | |
7 | - * | |
8 | - * This program is free software; you can redistribute it and/or | |
9 | - * modify it under the terms of the GNU General Public License | |
10 | - * as published by the Free Software Foundation; either version 2 | |
11 | - * of the License, or (at your option) any later version. | |
12 | - * | |
13 | - * This program is distributed in the hope that it will be useful, | |
14 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | - * GNU General Public License for more details. | |
17 | - * | |
18 | - * You should have received a copy of the GNU General Public License | |
19 | - * along with this program; if not, write to the Free Software | |
20 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
21 | 7 | */ |
22 | 8 | |
23 | 9 | package org.dict.zip.cli; |
@@ -1,19 +1,9 @@ | ||
1 | 1 | /* |
2 | - * Copyright (C) 2016 Hiroshi Miura | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * This program is free software; you can redistribute it and/or | |
5 | - * modify it under the terms of the GNU General Public License | |
6 | - * as published by the Free Software Foundation; either version 2 | |
7 | - * of the License, or (at your option) any later version. | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
8 | 5 | * |
9 | - * This program is distributed in the hope that it will be useful, | |
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | - * GNU General Public License for more details. | |
13 | - * | |
14 | - * You should have received a copy of the GNU General Public License | |
15 | - * along with this program; if not, write to the Free Software | |
16 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GNU General Public License v2.0 or later | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package org.dict.zip.cli; |
@@ -1,3 +1,10 @@ | ||
1 | +/* | |
2 | + * DictZip library. | |
3 | + * | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
5 | + * | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
7 | + */ | |
1 | 8 | package org.dict.zip; |
2 | 9 | |
3 | 10 | import java.io.EOFException; |
@@ -1,22 +1,9 @@ | ||
1 | 1 | /* |
2 | 2 | * DictZip library. |
3 | 3 | * |
4 | - * Copyright (C) 2001-2004 Ho Ngoc Duc | |
5 | 4 | * Copyright (C) 2016-2022 Hiroshi Miura |
6 | 5 | * |
7 | - * This program is free software; you can redistribute it and/or | |
8 | - * modify it under the terms of the GNU General Public License | |
9 | - * as published by the Free Software Foundation; either version 2 | |
10 | - * of the License, or (at your option) any later version. | |
11 | - * | |
12 | - * This program is distributed in the hope that it will be useful, | |
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | - * GNU General Public License for more details. | |
16 | - * | |
17 | - * You should have received a copy of the GNU General Public License | |
18 | - * along with this program; if not, write to the Free Software | |
19 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
20 | 7 | */ |
21 | 8 | package org.dict.zip; |
22 | 9 |
@@ -25,6 +12,9 @@ import java.io.RandomAccessFile; | ||
25 | 12 | import java.nio.file.Path; |
26 | 13 | import java.nio.file.Paths; |
27 | 14 | |
15 | +/** | |
16 | + * @author Hiroshi Miura | |
17 | + */ | |
28 | 18 | public class DictZipFiles { |
29 | 19 | |
30 | 20 | static final int CHECK_BUF_LEN = 65536; |
@@ -2,38 +2,9 @@ | ||
2 | 2 | * DictZip library. |
3 | 3 | * |
4 | 4 | * Copyright (C) 2001-2004 Ho Ngoc Duc |
5 | - * Copyright (C) 2016 Hiroshi Miura | |
5 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
6 | 6 | * |
7 | - * This program is free software; you can redistribute it and/or | |
8 | - * modify it under the terms of the GNU General Public License | |
9 | - * as published by the Free Software Foundation; either version 2 | |
10 | - * of the License, or (at your option) any later version. | |
11 | - * | |
12 | - * This program is distributed in the hope that it will be useful, | |
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | - * GNU General Public License for more details. | |
16 | - * | |
17 | - * You should have received a copy of the GNU General Public License | |
18 | - * along with this program; if not, write to the Free Software | |
19 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 | - * | |
21 | - * Linking this library statically or dynamically with other modules is | |
22 | - * making a combined work based on this library. Thus, the terms and | |
23 | - * conditions of the GNU General Public License cover the whole | |
24 | - * combination. | |
25 | - * | |
26 | - * As a special exception, the copyright holders of this library give you | |
27 | - * permission to link this library with independent modules to produce an | |
28 | - * executable, regardless of the license terms of these independent | |
29 | - * modules, and to copy and distribute the resulting executable under | |
30 | - * terms of your choice, provided that you also meet, for each linked | |
31 | - * independent module, the terms and conditions of the license of that | |
32 | - * module. An independent module is a module which is not derived from | |
33 | - * or based on this library. If you modify this library, you may extend | |
34 | - * this exception to your version of the library, but you are not | |
35 | - * obligated to do so. If you do not wish to do so, delete this | |
36 | - * exception statement from your version. | |
7 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
37 | 8 | */ |
38 | 9 | |
39 | 10 | package org.dict.zip; |
@@ -4,19 +4,7 @@ | ||
4 | 4 | * Copyright (C) 2001-2004 Ho Ngoc Duc |
5 | 5 | * Copyright (C) 2016-2022 Hiroshi Miura |
6 | 6 | * |
7 | - * This program is free software; you can redistribute it and/or | |
8 | - * modify it under the terms of the GNU General Public License | |
9 | - * as published by the Free Software Foundation; either version 2 | |
10 | - * of the License, or (at your option) any later version. | |
11 | - * | |
12 | - * This program is distributed in the hope that it will be useful, | |
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | - * GNU General Public License for more details. | |
16 | - * | |
17 | - * You should have received a copy of the GNU General Public License | |
18 | - * along with this program; if not, write to the Free Software | |
19 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
20 | 8 | */ |
21 | 9 | |
22 | 10 | package org.dict.zip; |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | 2 | * DictZip library. |
3 | 3 | * |
4 | - * Copyright (C) 2016 Hiroshi Miura | |
4 | + * Copyright (C) 2016-2022 Hiroshi Miura | |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | |
38 | 9 | package org.dict.zip; |
@@ -4,20 +4,9 @@ | ||
4 | 4 | * Copyright (C) 2001-2004 Ho Ngoc Duc |
5 | 5 | * Copyright (C) 2016-2022 Hiroshi Miura |
6 | 6 | * |
7 | - * This program is free software; you can redistribute it and/or | |
8 | - * modify it under the terms of the GNU General Public License | |
9 | - * as published by the Free Software Foundation; either version 2 | |
10 | - * of the License, or (at your option) any later version. | |
11 | - * | |
12 | - * This program is distributed in the hope that it will be useful, | |
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | - * GNU General Public License for more details. | |
16 | - * | |
17 | - * You should have received a copy of the GNU General Public License | |
18 | - * along with this program; if not, write to the Free Software | |
19 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
20 | 8 | */ |
9 | + | |
21 | 10 | package org.dict.zip; |
22 | 11 | |
23 | 12 | import org.jetbrains.annotations.NotNull; |
@@ -3,36 +3,7 @@ | ||
3 | 3 | * |
4 | 4 | * Copyright (C) 2016-2022 Hiroshi Miura |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | |
38 | 9 | package org.dict.zip; |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip Library test. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | 4 | * Copyright (C) 2021-2022 Hiroshi Miura |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | package org.dict.zip; |
38 | 9 |
@@ -1,3 +1,10 @@ | ||
1 | +/* | |
2 | + * DictZip library. | |
3 | + * | |
4 | + * Copyright (C) 2021-2022 Hiroshi Miura | |
5 | + * | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
7 | + */ | |
1 | 8 | package org.dict.zip; |
2 | 9 | |
3 | 10 | import org.junit.jupiter.api.Assertions; |
@@ -1,51 +1,22 @@ | ||
1 | 1 | /* |
2 | - * DictZip Library test. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | - * Copyright (C) 2016,2019 Hiroshi Miura | |
4 | + * Copyright (C) 2016,2019-2022 Hiroshi Miura | |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | package org.dict.zip; |
38 | 9 | |
39 | -import java.io.File; | |
40 | -import java.io.FileOutputStream; | |
41 | -import java.io.IOException; | |
42 | -import java.nio.file.Path; | |
43 | - | |
44 | 10 | import org.dict.zip.DictZipHeader.CompressionLevel; |
45 | 11 | import org.junit.jupiter.api.Test; |
46 | 12 | import org.junit.jupiter.api.io.TempDir; |
47 | 13 | import tokyo.northside.io.FileUtils2; |
48 | 14 | |
15 | +import java.io.File; | |
16 | +import java.io.FileOutputStream; | |
17 | +import java.io.IOException; | |
18 | +import java.nio.file.Path; | |
19 | + | |
49 | 20 | import static org.junit.jupiter.api.Assertions.assertEquals; |
50 | 21 | import static org.junit.jupiter.api.Assertions.assertTrue; |
51 | 22 |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip library test. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | 4 | * Copyright (C) 2016,2019,2022 Hiroshi Miura |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | |
38 | 9 | package org.dict.zip; |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip library test. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | 4 | * Copyright (C) 2016,2019,2022 Hiroshi Miura |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | |
38 | 9 | package org.dict.zip; |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip library test. | |
2 | + * DictZip library. | |
3 | 3 | * |
4 | 4 | * Copyright (C) 2016,2019,2022 Hiroshi Miura |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: GPL-2.0-or-later WITH Classpath-exception-2.0 | |
36 | 7 | */ |
37 | 8 | |
38 | 9 | package org.dict.zip; |
@@ -3,29 +3,19 @@ | ||
3 | 3 | * |
4 | 4 | * Copyright (C) 2016,2022 Hiroshi Miura |
5 | 5 | * |
6 | - * Licensed under the Apache License, Version 2.0 (the "License"); | |
7 | - * you may not use this file except in compliance with the License. | |
8 | - * You may obtain a copy of the License at | |
9 | - * | |
10 | - * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | - * | |
12 | - * Unless required by applicable law or agreed to in writing, software | |
13 | - * distributed under the License is distributed on an "AS IS" BASIS, | |
14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | - * See the License for the specific language governing permissions and | |
16 | - * limitations under the License. | |
6 | + * SPDX-License-Identifier: Apache-2.0 | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package tokyo.northside.io; |
20 | 10 | |
11 | +import org.apache.commons.io.IOUtils; | |
12 | +import org.jetbrains.annotations.NotNull; | |
13 | + | |
21 | 14 | import java.io.File; |
22 | 15 | import java.io.FileInputStream; |
23 | 16 | import java.io.IOException; |
24 | 17 | import java.nio.file.Path; |
25 | 18 | |
26 | -import org.apache.commons.io.IOUtils; | |
27 | -import org.jetbrains.annotations.NotNull; | |
28 | - | |
29 | 19 | |
30 | 20 | /** |
31 | 21 | * General File manipulation utility. |
@@ -1,19 +1,9 @@ | ||
1 | 1 | /* |
2 | 2 | * FileUtils library. |
3 | 3 | * |
4 | - * Copyright (C) 2016 Hiroshi Miura | |
4 | + * Copyright (C) 2016,2022 Hiroshi Miura | |
5 | 5 | * |
6 | - * Licensed under the Apache License, Version 2.0 (the "License"); | |
7 | - * you may not use this file except in compliance with the License. | |
8 | - * You may obtain a copy of the License at | |
9 | - * | |
10 | - * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | - * | |
12 | - * Unless required by applicable law or agreed to in writing, software | |
13 | - * distributed under the License is distributed on an "AS IS" BASIS, | |
14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | - * See the License for the specific language governing permissions and | |
16 | - * limitations under the License. | |
6 | + * SPDX-License-Identifier: Apache-2.0 | |
17 | 7 | */ |
18 | 8 | |
19 | 9 | package tokyo.northside.io; |
@@ -1,38 +1,9 @@ | ||
1 | 1 | /* |
2 | - * DictZip Library test. | |
2 | + * FileUtils library test. | |
3 | 3 | * |
4 | - * Copyright (C) 2016,2019 Hiroshi Miura | |
4 | + * Copyright (C) 2016,2019,2022 Hiroshi Miura | |
5 | 5 | * |
6 | - * This program is free software; you can redistribute it and/or | |
7 | - * modify it under the terms of the GNU General Public License | |
8 | - * as published by the Free Software Foundation; either version 2 | |
9 | - * of the License, or (at your option) any later version. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU General Public License | |
17 | - * along with this program; if not, write to the Free Software | |
18 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | - * | |
20 | - * Linking this library statically or dynamically with other modules is | |
21 | - * making a combined work based on this library. Thus, the terms and | |
22 | - * conditions of the GNU General Public License cover the whole | |
23 | - * combination. | |
24 | - * | |
25 | - * As a special exception, the copyright holders of this library give you | |
26 | - * permission to link this library with independent modules to produce an | |
27 | - * executable, regardless of the license terms of these independent | |
28 | - * modules, and to copy and distribute the resulting executable under | |
29 | - * terms of your choice, provided that you also meet, for each linked | |
30 | - * independent module, the terms and conditions of the license of that | |
31 | - * module. An independent module is a module which is not derived from | |
32 | - * or based on this library. If you modify this library, you may extend | |
33 | - * this exception to your version of the library, but you are not | |
34 | - * obligated to do so. If you do not wish to do so, delete this | |
35 | - * exception statement from your version. | |
6 | + * SPDX-License-Identifier: Apache-2.0 | |
36 | 7 | */ |
37 | 8 | package tokyo.northside; |
38 | 9 |