task completed but i have not figured out yet how to buffer readings from very big files. i have used
fileInputStream.read()
to read from file but for length of above 20 MB it is very slow. if i will use
fileInputStream.read(chunkArray)
then i could not add this chunk arrays into ArrayList because chunkArray holds byte items but ArrayList can hold only Byte data. i wonder if there is a solution or maybe we should avoid to store such large amounts of data in RAM