United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4077352 java.io.DataInputStream.readUnsignedInt()
JDK-4077352 : java.io.DataInputStream.readUnsignedInt()

Details
Type:
Enhancement
Submit Date:
1997-09-08
Status:
Closed
Updated Date:
1997-11-03
Project Name:
JDK
Resolved Date:
1997-11-03
Component:
core-libs
OS:
windows_95
Sub-Component:
java.io
CPU:
x86
Priority:
P5
Resolution:
Won't Fix
Affected Versions:
1.1.3
Fixed Versions:

Related Reports

Sub Tasks

Description

Name: rlT66838			Date: 09/08/97


It would be nice to have
DataInputStream.readUnsignedInt()
instead of having to do
long l = dis.readInt() & 0xffffffffL;


======================================================================

                                    

Comments
EVALUATION

This functionality can be so easily provided by the user that it's not worth
an API change.  -- mr@eng 11/3/1997
                                     
1997-11-03
WORK AROUND



Name: rlT66838			Date: 09/08/97


long l = dis.readInt() & 0xffffffffL;
or
long readUnsignedInt(DataInputStream dis) {
  return dis.readInt() & 0xffffffffL;
}
======================================================================
                                     
2004-06-11



Hardware and Software, Engineered to Work Together