JDK-4077352 : java.io.DataInputStream.readUnsignedInt()
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.1.3
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-09-08
  • Updated: 1997-11-03
  • Resolved: 1997-11-03
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
WORK AROUND Name: rlT66838 Date: 09/08/97 long l = dis.readInt() & 0xffffffffL; or long readUnsignedInt(DataInputStream dis) { return dis.readInt() & 0xffffffffL; } ======================================================================
11-06-2004

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