File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/hankcs/hanlp/dictionary/other Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import com .hankcs .hanlp .HanLP ;
15
15
import com .hankcs .hanlp .corpus .io .ByteArray ;
16
+ import com .hankcs .hanlp .corpus .io .IOUtil ;
16
17
import com .hankcs .hanlp .utility .TextUtility ;
17
18
18
19
import java .io .DataOutputStream ;
19
- import java .io .FileOutputStream ;
20
20
import java .io .IOException ;
21
21
import java .util .LinkedList ;
22
22
import java .util .List ;
@@ -131,7 +131,7 @@ private static ByteArray generate() throws IOException
131
131
typeList .add (array );
132
132
}
133
133
// System.out.print("int[" + typeList.size() + "][3] array = \n");
134
- DataOutputStream out = new DataOutputStream (new FileOutputStream (HanLP .Config .CharTypePath ));
134
+ DataOutputStream out = new DataOutputStream (IOUtil . newOutputStream (HanLP .Config .CharTypePath ));
135
135
for (int [] array : typeList )
136
136
{
137
137
// System.out.printf("%d %d %d\n", array[0], array[1], array[2]);
You can’t perform that action at this time.
0 commit comments