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