export changes
This commit is contained in:
parent
9b44da2aea
commit
896d0148a8
|
@ -1,2 +1,3 @@
|
|||
.idea/
|
||||
target/
|
||||
logs/
|
||||
|
|
|
@ -16,17 +16,17 @@ public class LanguageRDAMapper {
|
|||
private final static Map<String, String> langMap = new HashMap<>();
|
||||
|
||||
private static final LoggerService logger = new LoggerService(LoggerFactory.getLogger(LanguageRDAMapper.class));
|
||||
static {
|
||||
try {
|
||||
ObjectMapper mapper = new ObjectMapper(); //TODO
|
||||
InputStreamReader isr = new InputStreamReader(LanguageRDAMapper.class.getClassLoader().getResource("internal/rda-lang-map.json").openStream(), StandardCharsets.UTF_8);
|
||||
langMap.putAll(mapper.readValue(isr, LinkedHashMap.class));
|
||||
isr.close();
|
||||
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
// static {
|
||||
// try {
|
||||
// ObjectMapper mapper = new ObjectMapper(); //TODO
|
||||
// InputStreamReader isr = new InputStreamReader(LanguageRDAMapper.class.getClassLoader().getResource("internal/rda-lang-map.json").openStream(), StandardCharsets.UTF_8);
|
||||
// langMap.putAll(mapper.readValue(isr, LinkedHashMap.class));
|
||||
// isr.close();
|
||||
//
|
||||
// } catch (IOException e) {
|
||||
// logger.error(e.getMessage(), e);
|
||||
// }
|
||||
// }
|
||||
|
||||
public Language toRDA(String code) {
|
||||
if (code == null || code.isBlank()) return null;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +1,2 @@
|
|||
rda-file-transformer:
|
||||
useSharedStorage: true
|
||||
useSharedStorage: false
|
||||
|
|
Loading…
Reference in New Issue