Counting Number of Rows in a URL stream

Hi.

I have a URL reader, and i need to know how many rows it reads when it goes through.

Has anyone had to do this before? I'm not sure if theres an inbuilt lineCounter in the BufferedReader (i read through the documenation and couldn't find anything).

Any suggestions on how i could go about doing this?

Thanks.

[345 byte] By [allydma] at [2007-11-26 21:47:03]
# 1
The API contains a class called LineNumberReader which sounds like what you are looking for.
jsalonena at 2007-7-10 3:37:06 > top of Java-index,Java Essentials,Java Programming...
# 2
> I'm not sure if theres an inbuilt lineCounter in the BufferedReader No there isn't. You just read a line and count the number of lines yourself.
camickra at 2007-7-10 3:37:06 > top of Java-index,Java Essentials,Java Programming...