From eb39da8cf60d60c176b80becf5e2ca8669e82820 Mon Sep 17 00:00:00 2001 From: Wilbur Date: Fri, 15 Dec 2017 15:22:12 +0800 Subject: [PATCH] Update Trie.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 外挂多音字文件流 --- src/main/java/net/sourceforge/pinyin4j/multipinyin/Trie.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/sourceforge/pinyin4j/multipinyin/Trie.java b/src/main/java/net/sourceforge/pinyin4j/multipinyin/Trie.java index e867e26..76d6654 100644 --- a/src/main/java/net/sourceforge/pinyin4j/multipinyin/Trie.java +++ b/src/main/java/net/sourceforge/pinyin4j/multipinyin/Trie.java @@ -130,6 +130,10 @@ public void loadMultiPinyinExtend() throws IOException { loadMultiPinyin(new FileInputStream(userMultiPinyinFile)); } } + InputStream inStream = MultiPinyinConfig.multiPinyinInput; + if (inStream != null) { + loadMultiPinyin(inStream); + } } public Trie get(String hexString) {