Bartek Nowak Bartek Nowak - 1 year ago 87
Java Question

Is there a way to ignore first symbol using BufferedReader

I try to get data in JSON format from url, but displayed data starts with [, is there any way to ignore first symbol using BufferedReader?


Rob Rob
Answer Source

To skip characters, use the BufferedReader skip method:

reader = new BufferedReader(new InputStreamReader(url.openStream()));

This will work at any point in the stream (not just at the beginning).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download