public class IniParser extends Object
Constructor and Description |
---|
IniParser() |
Modifier and Type | Method and Description |
---|---|
static BufferedReader |
openTextResource(String path)
Opens a buffered reader for the given resource.
|
static BufferedReader |
openTextResource(String path,
Class<?> c)
Opens a buffered reader for the given resource.
|
IniList |
parseINI(BufferedReader in)
Parses the INI-style configuration data from the given input stream.
|
IniList |
parseINI(File file)
Parses the INI-style wrapping the given file in a
BufferedReader |
IniList |
parseINI(String path)
Parses the INI-style configuration data from the given resource.
|
IniList |
parseINI(String path,
Class<?> c)
Parses the INI-style configuration data from the given resource,
using the given class to find the resource.
|
void |
setBackslashContinuesLine(boolean slashContinues)
Set whether or not a '\' at the end of a line signifies that the
line continues on the following line.
|
void |
setCommentDelimiter(String delimiter)
Set the String that identifies a comment.
|
public void setCommentDelimiter(String delimiter)
public void setBackslashContinuesLine(boolean slashContinues)
public IniList parseINI(String path) throws IOException
IOException
public IniList parseINI(String path, Class<?> c) throws IOException
IOException
public IniList parseINI(File file) throws IOException
BufferedReader
IOException
public IniList parseINI(BufferedReader in) throws IOException
IOException
public static BufferedReader openTextResource(String path)
public static BufferedReader openTextResource(String path, Class<?> c)
Copyright © 2005–2018 Open Microscopy Environment. All rights reserved.