Converting a ruby string into a java string


#1

I am trying to call a static method on a java class, that takes two
strings,
there are also methods that take jdom documents, when I call the method
I
get a no method found error with RubyString RubyString.

I tried converting it to java bytes and passing that into the
constructor of
java.lang.String, but that returns a proxy object not a byte array, so
it
can¹t find the constructor.

Is there a way of solving this

Tom

Information in this email including any attachments may be privileged,
confidential and is intended exclusively for the addressee. The views
expressed may not be official policy, but the personal views of the
originator. If you have received it in error, please notify the sender
by return e-mail and delete it from your system. You should not
reproduce, distribute, store, retransmit, use or disclose its contents
to anyone. Please note we reserve the right to monitor all e-mail
communication through our internal and external networks. SKY and the
SKY marks are trade marks of British Sky Broadcasting Group plc and are
used under licence. British Sky Broadcasting Limited (Registration No.
2906991), Sky Interactive Limited (Registration No. 3554332),
Sky-In-Home Service Limited (Registration No. 2067075) and Sky
Subscribers Services Limited (Registration No. 2340150) are direct or
indirect subsidiaries of British Sky Broadcasting Group plc
(Registration No. 2247735). All of the companies mentioned in this
paragraph are incorporated in England and Wales and share the same
registered office at Grant Way, Isleworth, Middlesex TW7 5QD.


#2

Can you provide a little code? You should be able to call a static
method on a class and if you pass two ruby strings to something which
expects two java strings…it should work automagically.

-Tom

On Fri, Mar 20, 2009 at 5:01 AM, Thomas Malone
removed_email_address@domain.invalid wrote:

Tom
(Registration No. 3554332), Sky-In-Home Service Limited (Registration No.
2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are
direct or indirect subsidiaries of British Sky Broadcasting Group plc
(Registration No. 2247735). All of the companies mentioned in this paragraph
are incorporated in England and Wales and share the same registered office
at Grant Way, Isleworth, Middlesex TW7 5QD.


Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: removed_email_address@domain.invalid , removed_email_address@domain.invalid


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email