|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kaiwitte.workbench.tools.Tools
public final class Tools
A class to provide general tools for the project.
Method Summary | |
---|---|
static java.lang.String |
readFile(java.lang.String filename)
Reads a file to a String . |
static java.lang.String |
readResource(java.lang.String resource)
Reads a resouce to a String . |
static java.lang.String |
replaceVariables(MetaRecord metaRecord,
java.lang.String content)
Replaces all variables with the format {recordname.columnname} in content with the according value in
metaRecord . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String replaceVariables(MetaRecord metaRecord, java.lang.String content)
{recordname.columnname}in
content
with the according value in
metaRecord
.
metaRecord
- the record with the valuescontent
- the template text
public static java.lang.String readResource(java.lang.String resource) throws java.io.IOException
String
.
resource
- the source
java.io.IOException
- iff an I/O error occurspublic static java.lang.String readFile(java.lang.String filename) throws java.io.IOException
String
.
filename
- the name of the source file
java.io.IOException
- iff an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |