Package org.codelibs.fess.dict.kuromoji
Class KuromojiFile.KuromojiUpdater
- java.lang.Object
-
- org.codelibs.fess.dict.kuromoji.KuromojiFile.KuromojiUpdater
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- KuromojiFile
protected class KuromojiFile.KuromojiUpdater extends Object implements Closeable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKuromojiUpdater(KuromojiItem newItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()KuromojiItemcommit()voidwrite(String line)KuromojiItemwrite(KuromojiItem oldItem)
-
-
-
Field Detail
-
isCommit
protected boolean isCommit
-
newFile
protected File newFile
-
writer
protected Writer writer
-
item
protected KuromojiItem item
-
-
Constructor Detail
-
KuromojiUpdater
protected KuromojiUpdater(KuromojiItem newItem)
-
-
Method Detail
-
write
public KuromojiItem write(KuromojiItem oldItem)
-
write
public void write(String line)
-
commit
public KuromojiItem commit()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-