Class FileReader
java.lang.Object
com.qasymphony.ci.plugin.store.file.FileReader
- All Implemented Interfaces:
Closeable,AutoCloseable
- Since:
- 1.0
- Version:
- 10/23/2015 1:12 AM trongle $
- Author:
- trongle
-
Constructor Summary
ConstructorsConstructorDescriptionFileReader(File file) FileReader(File file, int splitCount) FileReader(File file, Charset charset) FileReader(File file, Charset charset, int splitCount) FileReader(File file, Charset charset, int splitCount, ForkJoinPool pool) -
Method Summary
-
Constructor Details
-
FileReader
- Throws:
IOException
-
FileReader
- Throws:
IOException
-
FileReader
- Throws:
IOException
-
FileReader
- Throws:
IOException
-
FileReader
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
find
- Throws:
IOException
-
size
public int size()Get lines count of file- Returns:
- size
-
head
Read first n line- Parameters:
n- line- Returns:
- line
- Throws:
IOException- IOException
-
readAll
- Returns:
- all line
- Throws:
IOException- IOException
-
readLines
Read from line to line- Parameters:
from- fromto- to- Returns:
- lines
- Throws:
IOException- IOException
-
tail
Read last n line from file- Parameters:
n- line- Returns:
- line
- Throws:
IOException- IOException
-