// Path: src/main/java/org/apache/lucene/analysis/kr/morph/MorphException.java
// public class MorphException extends RuntimeException {
// 
//     private static final long serialVersionUID = 7605164221652820591L;
// 
//     public MorphException() {
//         super();
//     }
// 
//     public MorphException(String message) {
//         super(message);
//     }
// 
//     public MorphException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public MorphException(Throwable cause) {
//         super(cause);
//     }
// }


import lombok.extern.slf4j.Slf4j;
import org.apache.lucene.analysis.kr.morph.MorphException;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.Properties;
/*
 * Copyright 2011-2013 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.lucene.analysis.kr.utils;



@Slf4j
public class KoreanEnv {

    public static final Charset UTF8 = Charset.forName("UTF-8");

    public static final String FILE_SYLLABLE_FEATURE = "syllable.dic";

    public static final String FILE_DICTIONARY = "dictionary.dic";

    public static final String FILE_JOSA = "josa.dic";

    public static final String FILE_EOMI = "eomi.dic";

    public static final String FILE_EXTENSION = "extension.dic";

    public static final String FILE_MAPHANJA = "mapHanja.dic";

    public static final String FILE_PREFIX = "prefix.dic";

    public static final String FILE_SUFFIX = "suffix.dic";

    public static final String FILE_COMPOUNDS = "compounds.dic";

    public static final String FILE_UNCOMPOUNDS = "uncompounds.dic";

    public static final String FILE_CJ = "cj.dic";

    public static final String FILE_SYNONYM = "synonym.dic";

    public static final String FILE_CUSTOM = "custom.dic";

    public static final String FILE_KOREAN_PROPERTY = "org/apache/lucene/analysis/kr/korean.properties";

    private Properties defaults = null;

    /** The props member gets its values from the configuration in the property file. */
    private Properties props = null;

    private static KoreanEnv instance = new KoreanEnv();

    /** The constructor loads property values from the property file. */
// Path: src/main/java/org/apache/lucene/analysis/kr/morph/MorphException.java
// public class MorphException extends RuntimeException {
// 
//     private static final long serialVersionUID = 7605164221652820591L;
// 
//     public MorphException() {
//         super();
//     }
// 
//     public MorphException(String message) {
//         super(message);
//     }
// 
//     public MorphException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public MorphException(Throwable cause) {
//         super(cause);
//     }
// }


// Path: src/main/java/org/apache/lucene/analysis/kr/utils/KoreanEnv.java
import lombok.extern.slf4j.Slf4j;
import org.apache.lucene.analysis.kr.morph.MorphException;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.Properties;

/*
 * Copyright 2011-2013 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.lucene.analysis.kr.utils;



@Slf4j
public class KoreanEnv {

    public static final Charset UTF8 = Charset.forName("UTF-8");

    public static final String FILE_SYLLABLE_FEATURE = "syllable.dic";

    public static final String FILE_DICTIONARY = "dictionary.dic";

    public static final String FILE_JOSA = "josa.dic";

    public static final String FILE_EOMI = "eomi.dic";

    public static final String FILE_EXTENSION = "extension.dic";

    public static final String FILE_MAPHANJA = "mapHanja.dic";

    public static final String FILE_PREFIX = "prefix.dic";

    public static final String FILE_SUFFIX = "suffix.dic";

    public static final String FILE_COMPOUNDS = "compounds.dic";

    public static final String FILE_UNCOMPOUNDS = "uncompounds.dic";

    public static final String FILE_CJ = "cj.dic";

    public static final String FILE_SYNONYM = "synonym.dic";

    public static final String FILE_CUSTOM = "custom.dic";

    public static final String FILE_KOREAN_PROPERTY = "org/apache/lucene/analysis/kr/korean.properties";

    private Properties defaults = null;

    /** The props member gets its values from the configuration in the property file. */
    private Properties props = null;

    private static KoreanEnv instance = new KoreanEnv();

    /** The constructor loads property values from the property file. */
    private KoreanEnv() throws MorphException {