This commit is contained in:
rusefi 2020-07-15 00:26:31 -04:00
parent 781385dab3
commit 47ea0940c6
2 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class IniFileMetaInfo {
/** /**
* read maximum chunk size * read maximum chunk size
*/ */
private final int blockingFactor; // todo: this is probably an optional propery, come up with some default private final int blockingFactor; // todo: this is probably an optional property, come up with some default
public IniFileMetaInfo(RawIniFile file) { public IniFileMetaInfo(RawIniFile file) {

View File

@ -3,6 +3,8 @@ package com.opensr5.ini;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*; import java.util.*;
/** /**
@ -30,6 +32,9 @@ public class RawIniFile {
} }
} }
public static RawIniFile read(String fileName) throws FileNotFoundException {
return IniFileReader.read(new FileInputStream(fileName));
}
@NotNull @NotNull
public Line getMandatoryLine(String key) { public Line getMandatoryLine(String key) {