File tree Expand file tree Collapse file tree 4 files changed +79
-3
lines changed
java/pt/cjmach/pstconv/charsets
resources/META-INF/services Expand file tree Collapse file tree 4 files changed +79
-3
lines changed Original file line number Diff line number Diff line change 115115 <artifactId >slf4j-jcl</artifactId >
116116 <version >${slf4j.version} </version >
117117 </dependency >
118+ <dependency >
119+ <groupId >com.beetstra.jutf7</groupId >
120+ <artifactId >jutf7</artifactId >
121+ <version >1.0.0</version >
122+ </dependency >
123+ <!-- Testing dependencies -->
118124 <dependency >
119125 <groupId >org.junit.jupiter</groupId >
120126 <artifactId >junit-jupiter-api</artifactId >
164170 <artifactId >maven-assembly-plugin</artifactId >
165171 <version >3.7.1</version >
166172 <configuration >
167- <descriptorRefs >
168- <descriptorRef >jar-with-dependencies</ descriptorRef >
169- </descriptorRefs >
173+ <descriptors >
174+ <descriptor >src/assembly/assembly.xml</ descriptor >
175+ </descriptors >
170176 <appendAssemblyId >false</appendAssemblyId >
171177 <archive >
172178 <manifest >
Original file line number Diff line number Diff line change 1+ <assembly xmlns =" http://maven.apache.org/ASSEMBLY/2.2.0"
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/ASSEMBLY/2.2.0 http://maven.apache.org/xsd/assembly-2.2.0.xsd" >
4+ <id >jar-with-dependencies</id >
5+ <formats >
6+ <format >jar</format >
7+ </formats >
8+ <includeBaseDirectory >false</includeBaseDirectory >
9+ <dependencySets >
10+ <dependencySet >
11+ <outputDirectory >/</outputDirectory >
12+ <useProjectArtifact >true</useProjectArtifact >
13+ <unpack >true</unpack >
14+ <scope >runtime</scope >
15+ </dependencySet >
16+ </dependencySets >
17+ <containerDescriptorHandlers >
18+ <containerDescriptorHandler >
19+ <handlerName >metaInf-services</handlerName >
20+ </containerDescriptorHandler >
21+ </containerDescriptorHandlers >
22+ </assembly >
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2024 Carlos Machado
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package pt .cjmach .pstconv .charsets ;
17+
18+ import java .nio .charset .Charset ;
19+ import java .nio .charset .spi .CharsetProvider ;
20+ import java .util .HashSet ;
21+ import java .util .Iterator ;
22+
23+ /**
24+ *
25+ * @author cmachado
26+ */
27+ public class ISO88598ICharsetProvider extends CharsetProvider {
28+ private static final String CHARSET_NAME = "ISO-8859-8-I" ;
29+
30+ private final Charset charset = Charset .forName ("ISO-8859-8" );
31+
32+ @ Override
33+ public Iterator <Charset > charsets () {
34+ HashSet <Charset > set = new HashSet <>(1 );
35+ set .add (charset );
36+ return set .iterator ();
37+ }
38+
39+ @ Override
40+ public Charset charsetForName (String charsetName ) {
41+ if (CHARSET_NAME .equalsIgnoreCase (charsetName )) {
42+ return charset ;
43+ }
44+ return null ;
45+ }
46+
47+ }
Original file line number Diff line number Diff line change 1+ pt.cjmach.pstconv.charsets.ISO88598ICharsetProvider
You can’t perform that action at this time.
0 commit comments