Database Management and Java

By Art Sulger

Dr. Dobb's Journal May 1997

try{ 
   for (i = 0, j = 0; i < iRowLength; i++, j++)
      { 
      if (j < sbRow.length()) 
         sbRow.setCharAt(i, (char)readBuffer[j]);
      else
         sbRow.setCharAt(i, ' '); } 
      } 
 catch(StringIndexOutOfBoundsException e)...

Example 5: Moving the byte array to the StringBuffer.

Back to Article


Copyright © 1997, Dr. Dobb's Journal