public class FileReaderFactory extends ReaderFactory
ReaderFactory that returns readers for a given file.| Constructor and Description |
|---|
FileReaderFactory(Path file,
Charset charset)
Creates a new factory to read the specified file with a given charset.
|
| Modifier and Type | Method and Description |
|---|---|
Reader |
create()
Creates a new
Reader for the file. |
String |
getFileName()
Returns the absolute path of the resource.
|
getCharset, readDocument, readStream, readString@MustBeClosed public Reader create()
ReaderFactoryReader for the file.create in class ReaderFactorypublic String getFileName()
getFileName in class ReaderFactoryCopyright © 2018. All rights reserved.