public class Source<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedSource |
fromFile(File file,
String enc)
Creates Source from file, using given character encoding, setting its
description to filename.
|
static BufferedSource |
fromFile(String name,
String enc)
Creates Source from file, using given character encoding, setting its
description to filename.
|
static BufferedSource |
fromInputStream(InputStream is)
Creates Source from InputStream.
|
static BufferedSource |
fromInputStream(InputStream is,
String enc)
Creates Source from InputStream.
|
static BufferedSource |
fromURL(URL url,
String enc)
Create a Source from URL
|
public static BufferedSource fromFile(String name, String enc) throws IOException
IOExceptionpublic static BufferedSource fromFile(File file, String enc) throws IOException
IOExceptionpublic static BufferedSource fromInputStream(InputStream is) throws IOException
IOExceptionpublic static BufferedSource fromInputStream(InputStream is, String enc) throws IOException
IOExceptionpublic static BufferedSource fromURL(URL url, String enc) throws IOException
IOExceptionCopyright © 2015. All rights reserved.