- java.lang.Object
-
- io.ebean.util.IOUtils
-
public final class IOUtils extends Object
Utilities for IO. It uses UTF-8 as encoding when reading/writing and uses buffered IO for better performance.
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedReadernewReader(File file)Read from file as UTF-8.static BufferedReadernewReader(InputStream is)Read from stream as UTF-8.static BufferedWriternewWriter(File file)Write to file as UTF-8static BufferedWriternewWriter(OutputStream os)Write to stream as UTF-8
-
-
-
Method Detail
-
newReader
public static BufferedReader newReader(InputStream is)
Read from stream as UTF-8.
-
newReader
public static BufferedReader newReader(File file) throws FileNotFoundException
Read from file as UTF-8.- Throws:
FileNotFoundException
-
newWriter
public static BufferedWriter newWriter(OutputStream os)
Write to stream as UTF-8
-
newWriter
public static BufferedWriter newWriter(File file) throws FileNotFoundException
Write to file as UTF-8- Throws:
FileNotFoundException
-
-