/[classpath]/classpath/java/io/DataInputStream.java
ViewVC logotype

Diff of /classpath/java/io/DataInputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.16 by mark, Fri Oct 25 13:24:41 2002 UTC
# Line 734  public class DataInputStream extends Fil Line 734  public class DataInputStream extends Fil
734    static String convertFromUTF(byte[] buf)    static String convertFromUTF(byte[] buf)
735      throws EOFException, UTFDataFormatException      throws EOFException, UTFDataFormatException
736    {    {
737      StringBuffer strbuf = new StringBuffer();      // Give StringBuffer an initial estimated size to avoid
738        // enlarge buffer frequently
739        StringBuffer strbuf = new StringBuffer(buf.length/2 + 2);
740    
741      for (int i = 0; i < buf.length; )      for (int i = 0; i < buf.length; )
742        {        {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26