readLine is deprecated

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, 99jonathan, imaqine

readLine is deprecated

Postby tamasu » Thu Dec 13, 2012 9:27 pm

Hi,

I am using the method readLine() to read a string sent over bluetooth from another NXT. Whilst the lejos and other online examples are using the command readLine for this scope, it was noticed that this method is deprecated. In view of this would you kindly advise what method I should be using. Is there an example that I can follow?

Thanks
tamasu
New User
 
Posts: 7
Joined: Sun Nov 25, 2012 12:14 am

Re: readLine is deprecated

Postby skoehler » Sat Dec 15, 2012 4:47 pm

Are you talking about the DataInputStream.readLine method?
See the offical JDK documentation for why having and using that method was a bad in the first place:
http://docs.oracle.com/javase/1.5.0/docs/api/java/io/DataInputStream.html#readLine%28%29
skoehler
leJOS Team Member
 
Posts: 1109
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: bczm8703, skoehler and 1 guest

more stuff