public final class ReaderFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Reader |
createReaderFromFile(File file)
Create a reader from a file with correct encoding.
|
static Reader |
createReaderFromFile(File file,
Charset defaultCharset)
Create a reader from a file with correct encoding
|
public static Reader createReaderFromFile(File file, Charset defaultCharset) throws IOException
file - The file to read fromdefaultCharset - defaultCharset to use if can't be determinedIOExceptionpublic static Reader createReaderFromFile(File file) throws IOException
file - The file to read fromIOExceptionCopyright © 2017. All rights reserved.