🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #630

Konwersja byte[] na char[]?

#630
From: Jacek Laskowski
Date: Thu, 29 May 1997 17:54
10 lines
920 bytes
Hi!
W jaki sposob przeprowadzic konwersje byte[] na char[]?
Interesuje mnie jakas prosta metoda, nie petla if, for, ani
String buf=new
StringBuffer(2).insert(0,(char)inBuf[0]).insert(1,(char)inBuf[1]).toString(); 
JL. 
----------------------------------------------
Jacek Laskowski              
J.Laskowski@bu.uni.torun.pl
laska@mat.uni.torun.pl
Technical Details
Message-ID: <338DC2C7.A49@bu.uni.torun.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.man.torun.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.man.torun.pl!not-for-mail
From: Jacek Laskowski <J.Laskowski@bu.uni.torun.pl>
Newsgroups: pl.comp.lang.java
Subject: Konwersja byte[] na char[]?
Date: Thu, 29 May 1997 19:54:15 +0200
Organization: Biblioteka Główna UMK
 Toruń
Lines: 10
Message-ID: <338DC2C7.A49@bu.uni.torun.pl>
NNTP-Posting-Host: 158.75.8.31
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; I)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit