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