Package org.fugerit.java.core.io.line
Class LineIOUtils
- java.lang.Object
-
- org.fugerit.java.core.io.line.LineIOUtils
-
public class LineIOUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineReader
createLineReader(InputStream stream)
static LineReader
createLineReader(Reader reader)
static LineWriter
createLineWriter(OutputStream stream)
static LineWriter
createLineWriter(Writer writer)
static List<String>
readLines(File file)
static List<String>
readLines(InputStream is)
static List<String>
readLines(Reader r)
static String[]
toLines(List<String> list)
-
-
-
Method Detail
-
readLines
public static List<String> readLines(File file) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
readLines
public static List<String> readLines(InputStream is) throws IOException
- Throws:
IOException
-
readLines
public static List<String> readLines(Reader r) throws IOException
- Throws:
IOException
-
createLineReader
public static LineReader createLineReader(InputStream stream)
-
createLineReader
public static LineReader createLineReader(Reader reader)
-
createLineWriter
public static LineWriter createLineWriter(OutputStream stream)
-
createLineWriter
public static LineWriter createLineWriter(Writer writer)
-
-