public class Library extends Object
| Constructor and Description |
|---|
Library() |
| Modifier and Type | Method and Description |
|---|---|
static void |
insertWord(Forest forest,
Value value) |
static void |
insertWord(WoodInterface forest,
String temp)
插入一个词
|
static Forest |
makeForest(BufferedReader br) |
static Forest |
makeForest(InputStream inputStream) |
static Forest |
makeForest(List<Value> values)
传入value数组.构造树
|
static Forest |
makeForest(String path) |
static void |
removeWord(Forest forest,
String word)
删除一个词
|
public static Forest makeForest(InputStream inputStream) throws Exception
Exceptionpublic static Forest makeForest(BufferedReader br) throws Exception
Exceptionpublic static Forest makeForest(List<Value> values)
values - forest - public static void insertWord(WoodInterface forest, String temp)
forest - temp - Copyright © 2013. All Rights Reserved.