|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rythmengine.utils.IO
public class IO
IO utilities
Constructor Summary | |
---|---|
IO()
|
Method Summary | |
---|---|
static String |
readContentAsString(File file)
Read file content to a String (always use utf-8) |
static String |
readContentAsString(File file,
String encoding)
Read file content to a String |
static String |
readContentAsString(InputStream is)
|
static String |
readContentAsString(InputStream is,
String encoding)
|
static String |
readContentAsString(URL url)
Read file content to a String (always use utf-8) |
static String |
readContentAsString(URL url,
String encoding)
Read file content to a String |
static void |
writeContent(CharSequence content,
File file)
Write String content to a file (always use utf-8) |
static void |
writeContent(CharSequence content,
File file,
String encoding)
Write String content to a file (always use utf-8) |
static void |
writeContent(CharSequence content,
Writer writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IO()
Method Detail |
---|
public static String readContentAsString(File file)
file
- The file to read
public static String readContentAsString(URL url, String encoding)
url
- The url resource to read
public static String readContentAsString(URL url)
url
- the url resource to read
public static String readContentAsString(File file, String encoding)
file
- The file to read
public static String readContentAsString(InputStream is)
public static String readContentAsString(InputStream is, String encoding)
public static void writeContent(CharSequence content, File file)
content
- The content to writefile
- The file to writepublic static void writeContent(CharSequence content, File file, String encoding)
content
- The content to writefile
- The file to writepublic static void writeContent(CharSequence content, Writer writer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |