fb7caccfdbdd35540be335191db1fb67cc1753b2.svn-base 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.chinacreator.process.util;
  2. import java.nio.charset.Charset;
  3. public final class StandardCharsets {
  4. private StandardCharsets() {
  5. throw new AssertionError("No java.nio.charset.StandardCharsets instances for you!");
  6. }
  7. /**
  8. * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the
  9. * Unicode character set
  10. */
  11. public static final Charset US_ASCII = Charset.forName("US-ASCII");
  12. /**
  13. * ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1
  14. */
  15. public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
  16. /**
  17. * Eight-bit UCS Transformation Format
  18. */
  19. public static final Charset UTF_8 = Charset.forName("UTF-8");
  20. /**
  21. * Sixteen-bit UCS Transformation Format, big-endian byte order
  22. */
  23. public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
  24. /**
  25. * Sixteen-bit UCS Transformation Format, little-endian byte order
  26. */
  27. public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
  28. /**
  29. * Sixteen-bit UCS Transformation Format, byte order identified by an
  30. * optional byte-order mark
  31. */
  32. public static final Charset UTF_16 = Charset.forName("UTF-16");
  33. }