2424package com .codename1 .io ;
2525
2626import com .codename1 .ui .Display ;
27+ import com .codename1 .util .StringUtil ;
2728
2829import java .io .IOException ;
2930import java .io .InputStream ;
@@ -357,7 +358,7 @@ private int read1(byte[] b, int off, int len) throws IOException {
357358 actualAvailable = -1 ;
358359 } else {
359360 if (printInput ) {
360- System .out .print (Util .newString (b , off , val ));
361+ System .out .print (StringUtil .newString (b , off , val ));
361362 }
362363 }
363364 return val ;
@@ -371,7 +372,7 @@ private int read1(byte[] b, int off, int len) throws IOException {
371372 int cnt = (avail < len ) ? avail : len ;
372373 System .arraycopy (getBufIfOpen (), pos , b , off , cnt );
373374 if (printInput ) {
374- System .out .print (Util .newString (b , off , cnt ));
375+ System .out .print (StringUtil .newString (b , off , cnt ));
375376 }
376377 pos += cnt ;
377378 return cnt ;
@@ -438,7 +439,7 @@ public synchronized int read(byte[] b, int off, int len)
438439 int v = getInIfOpen ().read (b , off , len );
439440 if (v > -1 ) {
440441 if (printInput ) {
441- System .out .print (Util .newString (b , off , v ));
442+ System .out .print (StringUtil .newString (b , off , v ));
442443 }
443444
444445 totalBytesRead += v ;
0 commit comments