Package com.jackdaw.chatwithnpc.group
Class GroupDataManager
java.lang.Object
com.jackdaw.chatwithnpc.group.GroupDataManager
A serializer used to read or write the data from the files.
This data is related to the Group's content.
Read or Write the data file with some information, each file just record one relative information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
theFile
-
group
-
-
Constructor Details
-
GroupDataManager
GroupDataManager(@NotNull @NotNull Group group) Create a new GroupDataManager.- Parameters:
group
- The group to be managed.
-
-
Method Details
-
mkdir
private static void mkdir() -
isExist
public boolean isExist()Check if the file is existed.- Returns:
- true if the file is existed, otherwise false.
-
sync
public void sync()Read the data from the file and set the group's content. -
save
public void save()Write the group's content to the file.
-