/** * @return The name of the system charset. */ @Nonnull public static String getSystemCharsetName () { return getSystemCharset ().name (); }
@UsedOnlyByJPA @Nonnull @Deprecated public EChange setLastName (@Nullable final String sLastName) { return setLastName (sLastName, SystemHelper.getSystemLocale ()); }
SystemHelper.getOperatingSystem ().getDisplayName () + " / " + SystemHelper.getOperatingSystemName ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_NUM_PROCESSORS.getDisplayText (aDisplayLocale), Integer.toString (SystemHelper.getNumberOfProcessors ())); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_CHARSET.getDisplayText (aDisplayLocale), SystemHelper.getSystemCharset ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_LOCALE.getDisplayText (aDisplayLocale), SystemHelper.getSystemLocale ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_FREE.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getFreeMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getFreeMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_MAX.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getMaxMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getMaxMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_TOTAL.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getTotalMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getTotalMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_CONTEXT_CLASSLOADER.getDisplayText (aDisplayLocale), ClassHelper.getContextClassLoader ().toString ());
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setState (@Nullable final String sState) { return setState (sState, SystemHelper.getSystemLocale ()); }
/** * Print the matrix to stdout. Line the elements up in columns with a * Fortran-like 'Fw.d' style format. * * @param nWidth * Column width. * @param nFractionDigits * Number of digits after the decimal. */ public void print (@Nonnegative final int nWidth, @Nonnegative final int nFractionDigits) { // ESCA-JAVA0266: print (new PrintWriter (new OutputStreamWriter (System.out, SystemHelper.getSystemCharset ()), true), nWidth, nFractionDigits); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setCity (@Nullable final String sCity) { return setCity (sCity, SystemHelper.getSystemLocale ()); }
/** * Print the matrix to stdout. Line the elements up in columns with a * Fortran-like 'Fw.d' style format. * * @param nWidth * Column width. * @param nFractionDigits * Number of digits after the decimal. */ public void print (@Nonnegative final int nWidth, @Nonnegative final int nFractionDigits) { // ESCA-JAVA0266: print (new PrintWriter (new OutputStreamWriter (System.out, SystemHelper.getSystemCharset ()), true), nWidth, nFractionDigits); }
@Nonnull @UsedOnlyByJPA @Deprecated public EChange setStreet (@Nullable final String sStreet) { return setStreet (sStreet, SystemHelper.getSystemLocale ()); }
/** * Print the matrix to stdout. Line the elements up in columns. Use the format * object, and right justify within columns of width characters. Note that is * the matrix is to be read back in, you probably will want to use a * NumberFormat that is set to US Locale. * * @param aFormat * A Formatting object for individual elements. * @param nWidth * Field width for each column. * @see java.text.DecimalFormat#setDecimalFormatSymbols */ public void print (@Nonnull final NumberFormat aFormat, @Nonnegative final int nWidth) { print (new PrintWriter (new OutputStreamWriter (System.out, SystemHelper.getSystemCharset ()), true), aFormat, nWidth); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setPostOfficeBox (@Nullable final String sPostOfficeBox) { return setPostOfficeBox (sPostOfficeBox, SystemHelper.getSystemLocale ()); }
/** * Print the matrix to stdout. Line the elements up in columns. Use the format * object, and right justify within columns of width characters. Note that is * the matrix is to be read back in, you probably will want to use a * NumberFormat that is set to US Locale. * * @param aFormat * A Formatting object for individual elements. * @param nWidth * Field width for each column. * @see java.text.DecimalFormat#setDecimalFormatSymbols */ public void print (@Nonnull final NumberFormat aFormat, @Nonnegative final int nWidth) { print (new PrintWriter (new OutputStreamWriter (System.out, SystemHelper.getSystemCharset ()), true), aFormat, nWidth); }
@UsedOnlyByJPA @Nonnull @Deprecated public EChange setFirstName (@Nullable final String sFirstName) { return setFirstName (sFirstName, SystemHelper.getSystemLocale ()); }
@UsedOnlyByJPA @Nonnull @Deprecated public EChange setMiddleName (@Nullable final String sMiddleName) { return setMiddleName (sMiddleName, SystemHelper.getSystemLocale ()); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setCountry (@Nullable final String sCountry) { return setCountry (sCountry, SystemHelper.getSystemLocale ()); }
/** * Create a collator that is based on the standard collator but sorts spaces * before dots, because spaces are more important word separators than dots. * Another example is the correct sorting of things like "1.1 a" vs. * "1.1.1 b". This is the default collator used for sorting by default! * * @param aLocale * The locale for which the collator is to be retrieved. May be * <code>null</code> to indicate the usage of the default locale. * @return The created {@link RuleBasedCollator} and never <code>null</code>. */ @Nonnull public static Collator getCollatorSpaceBeforeDot (@Nullable final Locale aLocale) { // Ensure to not pass null locale in final Locale aRealLocale = aLocale == null ? SystemHelper.getSystemLocale () : aLocale; // Always create a clone! return (Collator) s_aCache.getFromCache (aRealLocale).clone (); }
return SystemHelper.getSystemLocale ();
return Collator.getInstance (SystemHelper.getSystemLocale ()); return Collator.getInstance (SystemHelper.getSystemLocale ());
final String sUCFilename = sFilename.toUpperCase (SystemHelper.getSystemLocale ()); for (final String sIllegalPrefix : ILLEGAL_PREFIXES) if (sUCFilename.startsWith (sIllegalPrefix + "."))
final String sUCFilename = ret.toUpperCase (SystemHelper.getSystemLocale ()); for (final String sIllegalPrefix : ILLEGAL_PREFIXES) if (sUCFilename.startsWith (sIllegalPrefix + "."))
@Nonnull public Address convertToNative (@Nonnull final IMicroElement eAddress) { final Locale aLocale = SystemHelper.getSystemLocale (); final EAddressType eType = EAddressType.getFromIDOrNull (eAddress.getAttribute (ATTR_TYPE)); final String sCountry = eAddress.getAttribute (ATTR_COUNTRY); final String sState = eAddress.getAttribute (ATTR_STATE); final String sPostalCode = eAddress.getAttribute (ATTR_POSTALCODE); final String sCity = eAddress.getAttribute (ATTR_CITY); final String sStreet = eAddress.getAttribute (ATTR_STREET); final String sBuildingNumber = eAddress.getAttribute (ATTR_BUILDINGNUMBER); final String sPostOfficeBox = eAddress.getAttribute (ATTR_POBOX); return new Address (eType, sCountry, sState, sPostalCode, sCity, sStreet, sBuildingNumber, sPostOfficeBox, aLocale); } }