opendap/src/main/java/opendap/dap/Attribute.java
private static final boolean checkShort(String s)
    {
        try {
            short val = Short.parseShort(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkShort() - string: '" + s + "'   value: " + val);
            }
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
private static final boolean checkShort(String s)
    {
        try {
            short val = Short.parseShort(s);
            if(DebugValueChecking) {
                DAPNode.log.debug("Attribute.checkShort() - string: '" + s + "'   value: " + val);
            }
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
private static final boolean checkShort ( String s ) { try { short val = Short . parseShort ( s ) ; if ( DebugValueChecking ) { DAPNode . log . debug ( "Attribute.checkShort() - string: '" + s + "'   value: " + val ) ; } return true ; } catch ( NumberFormatException e ) { return false ; } }
Check if string is a valid Int16.

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