public class IOUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeEasy(java.io.BufferedReader in) |
static int |
copy(java.io.InputStream in,
java.io.OutputStream out) |
static int |
copy(java.io.Reader in,
java.io.Writer out) |
static java.lang.String |
getCharEncoding() |
static java.io.BufferedReader |
getReader(java.io.InputStream in) |
static java.io.PrintWriter |
getWriter(java.io.OutputStream out) |
static java.util.Iterator<java.lang.String> |
lineIterator(java.io.BufferedReader reader) |
static java.util.Iterator<java.lang.String> |
lineIterator(java.lang.String path) |
static java.io.BufferedReader |
openIn(java.io.File path) |
static java.io.BufferedReader |
openIn(java.lang.String path) |
static java.io.BufferedReader |
openInHard(java.io.File path) |
static java.io.BufferedReader |
openInHard(java.lang.String path) |
static java.io.ObjectInputStream |
openObjIn(java.io.File path) |
static java.io.ObjectInputStream |
openObjIn(java.lang.String path) |
static java.io.ObjectOutputStream |
openObjOut(java.io.File path) |
static java.io.ObjectOutputStream |
openObjOut(java.lang.String path) |
static java.io.PrintWriter |
openOut(java.io.File path) |
static java.io.PrintWriter |
openOut(java.lang.String path) |
static java.io.PrintWriter |
openOutEasy(java.io.File path) |
static java.io.PrintWriter |
openOutEasy(java.lang.String path) |
static java.io.PrintWriter |
openOutHard(java.io.File path) |
static java.io.PrintWriter |
openOutHard(java.lang.String path) |
static java.lang.String |
readLine(java.lang.String path) |
static java.lang.String |
readLineEasy(java.lang.String path) |
static java.util.List<java.lang.String> |
readLines(java.io.BufferedReader in) |
static java.util.List<java.lang.String> |
readLines(java.lang.String path) |
static java.util.List<java.lang.String> |
readLinesEasy(java.lang.String path) |
static java.util.List<java.lang.String> |
readLinesHard(java.lang.String path) |
static java.lang.Object |
readObjFile(java.io.File path) |
static java.lang.Object |
readObjFile(java.lang.String path) |
static java.lang.Object |
readObjFileEasy(java.io.File path) |
static java.lang.Object |
readObjFileEasy(java.lang.String path) |
static java.lang.Object |
readObjFileHard(java.io.File path) |
static java.lang.Object |
readObjFileHard(java.lang.String path) |
static void |
setCharEncoding(java.lang.String charEncoding) |
static void |
writeObjFile(java.io.File path,
java.lang.Object obj) |
static boolean |
writeObjFileEasy(java.io.File path,
java.lang.Object obj) |
static void |
writeObjFileHard(java.io.File path,
java.lang.Object obj) |
static void |
writeObjFileHard(java.lang.String path,
java.lang.Object obj) |
public static java.io.BufferedReader openIn(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.BufferedReader openIn(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.BufferedReader openInHard(java.lang.String path)
public static java.io.BufferedReader openInHard(java.io.File path)
public static java.io.PrintWriter openOut(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.PrintWriter openOut(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.PrintWriter openOutEasy(java.lang.String path)
public static java.io.PrintWriter openOutEasy(java.io.File path)
public static java.io.PrintWriter openOutHard(java.lang.String path)
public static java.io.PrintWriter openOutHard(java.io.File path)
public static java.io.ObjectInputStream openObjIn(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.ObjectInputStream openObjIn(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.ObjectOutputStream openObjOut(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.ObjectOutputStream openObjOut(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object readObjFile(java.lang.String path)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic static java.lang.Object readObjFile(java.io.File path)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic static java.lang.Object readObjFileEasy(java.lang.String path)
public static java.lang.Object readObjFileEasy(java.io.File path)
public static java.lang.Object readObjFileHard(java.lang.String path)
public static java.lang.Object readObjFileHard(java.io.File path)
public static void writeObjFile(java.io.File path,
java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionpublic static boolean writeObjFileEasy(java.io.File path,
java.lang.Object obj)
public static void writeObjFileHard(java.lang.String path,
java.lang.Object obj)
public static void writeObjFileHard(java.io.File path,
java.lang.Object obj)
public static boolean closeEasy(java.io.BufferedReader in)
public static int copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static int copy(java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.Iterator<java.lang.String> lineIterator(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.Iterator<java.lang.String> lineIterator(java.io.BufferedReader reader)
reader - public static java.util.List<java.lang.String> readLines(java.io.BufferedReader in)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<java.lang.String> readLinesEasy(java.lang.String path)
public static java.util.List<java.lang.String> readLinesHard(java.lang.String path)
public static java.lang.String readLine(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String readLineEasy(java.lang.String path)
public static java.util.List<java.lang.String> readLines(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getCharEncoding()
public static void setCharEncoding(java.lang.String charEncoding)
public static java.io.BufferedReader getReader(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.PrintWriter getWriter(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException