🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2157

Transfer Unicode array @ JNI to a String @ Java

#2157
From: simanhew
Date: Sat, 05 May 2001 00:16
11 lines
1174 bytes
Hi,

I am writing  a JNI, it has a Unicode char array generated by other
application.  I am going to put the array to a String in a Java Object.
Since I do not know how big the char array, I cannot "new" big enough String
before I call JNI.
Any good idea, please?

Thank you very much,

Siman
Technical Details
Message-ID: <3af3472e_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,dcdc193d51fb9694,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-05-04 17:39:52 PST
From: "simanhew" <simanhew@yahoo.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: Transfer Unicode array @ JNI to a String @ Java
Date: Fri, 4 May 2001 20:16:51 -0400
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 205.211.60.182
Message-ID: <3af3472e_2@dnews>
X-Trace: dnews 989021998 205.211.60.182 (4 May 2001 17:19:58 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews