public class PrintUtil extends Object
| Constructor and Description |
|---|
PrintUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
applyTemplate(String template,
Map<String,String> arguments,
Map<String,List<String>> listArguments)
Applies arguments to template.
|
String |
applyTemplate(String template,
Object[] arguments)
Applies arguments to template.
|
String |
loadFile(String file)
Loads a file.
|
String |
loadFile(String file,
boolean ignoreComments)
Loads a file.
|
String |
loadResource(String name)
Loads a file.
|
static void |
loadTableList(List<String> list,
InputStream in)
Loads table list file and fill a list.
|
static void |
loadTableList(List<String> list,
String fileName)
Loads table list file and fill a list.
|
String |
tableSetAsString(Set<Table> tables)
Converts a set of tables into a string.
|
String |
tableSetAsString(Set<Table> tables,
String linePrefix)
Converts a set of tables into a string.
|
public String tableSetAsString(Set<Table> tables)
tables - the setpublic String tableSetAsString(Set<Table> tables, String linePrefix)
tables - the setpublic String loadResource(String name) throws FileNotFoundException, IOException
file - the file to loadFileNotFoundExceptionIOExceptionpublic String applyTemplate(String template, Object[] arguments) throws FileNotFoundException, IOException
template - file name of templatearguments - the argumentsFileNotFoundExceptionIOExceptionpublic String applyTemplate(String template, Map<String,String> arguments, Map<String,List<String>> listArguments) throws FileNotFoundException, IOException
template - file name of templatearguments - the arguments (named values)FileNotFoundExceptionIOExceptionpublic static void loadTableList(List<String> list, String fileName) throws IOException
list - to fillfileName - name of fileIOExceptionpublic static void loadTableList(List<String> list, InputStream in) throws IOException
list - to fillin - to read fromIOExceptionpublic String loadFile(String file) throws FileNotFoundException, IOException
file - the file to loadFileNotFoundExceptionIOExceptionpublic String loadFile(String file, boolean ignoreComments) throws FileNotFoundException, IOException
file - the file to loadFileNotFoundExceptionIOException