Code example for DateFormat

Methods: clone

0
        } catch (Exception e) {
            return "[N/A]"; 
        } 
    } 
    protected String _desc(String desc)
    { 
        // !!! should we quote it? (in case there are control chars, linefeeds) 
        if (desc.length() > MAX_ERROR_STR_LEN) {
            desc = desc.substring(0, MAX_ERROR_STR_LEN) + "]...[" + desc.substring(desc.length() - MAX_ERROR_STR_LEN);
        } 
        return desc;
    } 
}