File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deprecated getBytes question

 
Samual Harvey
Ranch Hand
Posts: 119
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know which one of the following is correct.

Original code:-

FIRST WAY
Should I modify it like :-

SECOND WAY
or should I modify like this:-


Thanks.
[ September 26, 2002: Message edited by: Samual Harvey ]
 
harcharan kanwal
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i modified it by second way
harcharan
 
Samual Harvey
Ranch Hand
Posts: 119
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have more comments on this.
Thanks.
 
Padmaja Prasad
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I replaced

with

Padmaja
 
Samual Harvey
Ranch Hand
Posts: 119
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still not sure which one of the two to use. Is there a way I can test this.
I think I can use 2nd as follows:-
 
Michael Morris
Ranch Hand
Posts: 3451
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Samual,
I did it like Padmaja. It just seems like a cleaner way to do it. But that's just opinion.

Michal Morris
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic