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