net.named_data.jndn.util
public class BoostInfoParser extends Object
Constructor and Description |
---|
BoostInfoParser() |
Modifier and Type | Method and Description |
---|---|
BoostInfoTree |
getRoot()
Get the root tree of this parser.
|
BoostInfoTree |
read(String fileName)
Add the contents of the file to the root BoostInfoTree.
|
BoostInfoTree |
read(String input,
String inputName)
Add the contents of the input string to the root BoostInfoTree.
|
void |
write(String fileName)
Write the root tree of this BoostInfoParser as file in Boost's INFO format.
|
public BoostInfoTree read(String fileName) throws IOException
fileName
- The path to the INFO file.IOException
public BoostInfoTree read(String input, String inputName) throws IOException
input
- The contents of the INFO file, with lines separated by "\n" or
"\r\n".inputName
- Used for log messages, etc.IOException
public final void write(String fileName) throws IOException
fileName
- The output path.IOException
public final BoostInfoTree getRoot()
Copyright © 2016. All rights reserved.