i suggest:
IniEditer.java
public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String line = reader.readLine().trim();
to
public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String strrawline = reader.readLine();
if (null == strrawline) {
return;
}
String line = strrawline.trim();
when a /0D /0A at the end of the ini file. if (line.length() > 0 && line.charAt(0) == HEADER_START) will cause nullexception.
i suggest:
IniEditer.java
public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String line = reader.readLine().trim();
to
public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String strrawline = reader.readLine();
if (null == strrawline) {
return;
}
when a /0D /0A at the end of the ini file. if (line.length() > 0 && line.charAt(0) == HEADER_START) will cause nullexception.