Class FileReader
- java.lang.Object
-
- br.pucrio.tecgraf.soma.job.log.reader.FileReader
-
public class FileReader extends Object
-
-
Constructor Summary
Constructors Constructor Description FileReader(Integer maxLengthSize, Charset defaultCharset, boolean enableCharsetDetection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CharsetgetCharset(File file, Charset forcedCharset)IntegergetMaxLengthSize()FileChunkreadFile(String filePath, Long offset, Integer length, Charset charset)
-
-
-
Method Detail
-
getMaxLengthSize
public Integer getMaxLengthSize()
-
readFile
public FileChunk readFile(String filePath, Long offset, Integer length, Charset charset) throws IOException
- Throws:
IOException
-
getCharset
protected Charset getCharset(File file, Charset forcedCharset) throws IOException
- Throws:
IOException
-
-