public class BufferedSource extends Object
| Constructor and Description |
|---|
BufferedSource(File file,
String enc) |
BufferedSource(InputStream is,
String enc) |
| Modifier and Type | Method and Description |
|---|---|
InputStreamReader |
getInputStreamReader() |
Seq<String> |
getLines()
Reads input lines
|
Seq<Byte> |
toByteSeq()
Reads as a byte list
|
Seq<Character> |
toCharSeq()
Reads as a char list
|
Seq<String> |
toStringSeq()
Reads as a string list
|
public BufferedSource(File file, String enc) throws FileNotFoundException
FileNotFoundExceptionpublic BufferedSource(InputStream is, String enc) throws FileNotFoundException
FileNotFoundExceptionpublic InputStreamReader getInputStreamReader() throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Seq<Byte> toByteSeq() throws IOException
IOExceptionpublic Seq<Character> toCharSeq() throws IOException
IOExceptionpublic Seq<String> toStringSeq() throws IOException
IOExceptionpublic Seq<String> getLines() throws IOException
IOExceptionCopyright © 2015. All rights reserved.