Hi,
On Thu, Nov 26, 2009 at 1:07 PM, Daniel Knapp
<[email protected]> wrote:
> Okay, thanks for that hint. But should i deal with the extracted content?
> Actually i'm using the following Code:
> [...]
> StringBuilder sb = new StringBuilder();
> while ((tmp = br.readLine()) != null) {
> sb.append(tmp);
> }
> [...]
> But think this can't be the best solution, my memory gets fuller and fuller.
> Is this so exotic or do i overlook a detail?
Your memory gets filled because you buffer the extracted text into a
StringBuilder instance.
How about something like this instead:
String tmp;
while ((tmp = br.readLine()) != null) {
System.out.print(tmp);
}
BR,
Jukka Zitting