public class IOUtils extends Object
Constructor and Description |
---|
IOUtils() |
public static BufferedReader openIn(String path) throws IOException
IOException
public static BufferedReader openIn(File path) throws IOException
IOException
public static BufferedReader openInHard(String path)
public static BufferedReader openInHard(File path)
public static PrintWriter openOut(String path) throws IOException
IOException
public static PrintWriter openOut(File path) throws IOException
IOException
public static PrintWriter openOutEasy(String path)
public static PrintWriter openOutEasy(File path)
public static PrintWriter openOutHard(String path)
public static PrintWriter openOutHard(File path)
public static ObjectInputStream openObjIn(String path) throws IOException
IOException
public static ObjectInputStream openObjIn(File path) throws IOException
IOException
public static ObjectOutputStream openObjOut(String path) throws IOException
IOException
public static ObjectOutputStream openObjOut(File path) throws IOException
IOException
public static Object readObjFile(String path) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static Object readObjFile(File path) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static void writeObjFile(File path, Object obj) throws IOException
IOException
public static boolean closeEasy(BufferedReader in)
public static int copy(InputStream in, OutputStream out) throws IOException
IOException
public static int copy(Reader in, Writer out) throws IOException
IOException
public static Iterator<String> lineIterator(String path) throws IOException
IOException
public static Iterator<String> lineIterator(BufferedReader reader)
reader
- public static List<String> readLines(BufferedReader in) throws IOException
IOException
public static String readLine(String path) throws IOException
IOException
public static List<String> readLines(String path) throws IOException
IOException
public static String getCharEncoding()
public static void setCharEncoding(String charEncoding)
public static BufferedReader getReader(InputStream in) throws IOException
IOException
public static PrintWriter getWriter(OutputStream out) throws IOException
IOException