Search code examples
javabufferedreaderbandwidth

Start read at line X from website without using bandwidth?


I am trying to read a website using a bufferedReader but it is using 3Mbps of my internet and im trying to get it down, I know exectly on what line the text I want to read is so is there a way i can skip to that line and only read the text without using bandwidth on stuff I dont want and if this isnt working is there another way I can read that line without using this much bandwidth.


Solution

  • Consider using HTML Parser like JSOUP. Jsoup uses a parse tree and it can be really fast. Either way I don't think that there is a way to start from specific line, unfortunately.