|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.io.TestUtils
public final class TestUtils
Method Summary | |
---|---|
static String |
normalizeEndOfLine(String content)
normalize EOLs to simple line feed (\\n). |
static String |
readFile(File file)
Deprecated. this API isn't explicit about encoding nor EOL normalization, use readPlatformFile() or readXmlFile() depending on your need, in conjunction with normalizeEndOfLine() |
static String |
readPlatformFile(File file)
|
static String |
readXmlFile(File file)
|
static String |
toString(Throwable error)
|
static void |
writeFileWithEncoding(File file,
String content,
String encoding)
|
static void |
writePlatformFile(File file,
String content)
|
static void |
writeToFile(File file,
String testStr)
Deprecated. this API isn't explicit about encoding, use writePlatformFile() or writeXmlFile() depending on your need |
static void |
writeXmlFile(File file,
String content)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writePlatformFile(File file, String content) throws IOException
IOException
public static void writeFileWithEncoding(File file, String content, String encoding) throws IOException
IOException
public static void writeXmlFile(File file, String content) throws IOException
IOException
public static void writeToFile(File file, String testStr) throws IOException
IOException
public static String readFile(File file) throws IOException
IOException
public static String readPlatformFile(File file) throws IOException
IOException
public static String readXmlFile(File file) throws IOException
IOException
public static String normalizeEndOfLine(String content)
public static String toString(Throwable error)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |