opendap/src/main/java/opendap/dap/Attribute.java
private static final boolean checkUInt(String s)
    {
        // Note: Because there is no Unsigned class in Java, use Long instead.
        try {
            long val = Long.parseLong(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkUInt() - string: '" + s + "'   value: " + val);
            }
            if(val > 0xFFFFFFFFL)
                return false;
            else
                return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
private static final boolean checkUInt(String s)
    {
        // Note: Because there is no Unsigned class in Java, use Long instead.
        try {
            long val = Long.parseLong(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkUInt() - string: '" + s + "'   value: " + val);
            }
            if(val > 0xFFFFFFFFL)
                return false;
            else
                return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
private static final boolean checkUInt ( String s ) { // Note: Because there is no Unsigned class in Java, use Long instead. try { long val = Long . parseLong ( s ) ; if ( DebugValueChecking ) { DAPNode . log . debug ( "Attribute.checkUInt() - string: '" + s + "'   value: " + val ) ; } if ( val > 0xFFFFFFFF L ) return false ; else return true ; } catch ( NumberFormatException e ) { return false ; } }
Check if string is a valid UInt32.

@param s the <code>String</code> to check.
@return true if the value is legal.
Check if string is a valid UInt32 .