java.lang.Object
edu.hm.hafner.analysis.ReaderFactory
edu.hm.hafner.analysis.FileReaderFactory
Provides a
ReaderFactory that returns readers for a given file.- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFileReaderFactory(Path file) Creates a new factory to read the specified file.FileReaderFactory(Path file, Charset charset) Creates a new factory to read the specified file with a given charset. -
Methodenübersicht
Von Klasse geerbte Methoden edu.hm.hafner.analysis.ReaderFactory
parse, readDocument, readStream, readString
-
Konstruktordetails
-
FileReaderFactory
Creates a new factory to read the specified file with a given charset.- Parameter:
file- the file to opencharset- the charset to use when reading the file (ornullif the charset should be detected)
-
FileReaderFactory
Creates a new factory to read the specified file. The charset will be detected from xml header.- Parameter:
file- the file to open
-
-
Methodendetails
-
create
Beschreibung aus Klasse kopiert:ReaderFactoryCreates a newReaderfor the file.- Angegeben von:
createin KlasseReaderFactory- Gibt zurück:
- a reader
-
getFileName
Returns the absolute path of the resource. The file name uses UNIX path separators.- Angegeben von:
getFileNamein KlasseReaderFactory- Gibt zurück:
- the file name
-
getCharset
Beschreibung aus Klasse kopiert:ReaderFactoryReturns the character set that is used to read the stream.- Setzt außer Kraft:
getCharsetin KlasseReaderFactory- Gibt zurück:
- the character set
-