OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (C) 2012 René Jeschke <rene_jeschke@yahoo.de> |
| 3 * |
| 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 * you may not use this file except in compliance with the License. |
| 6 * You may obtain a copy of the License at |
| 7 * |
| 8 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 * |
| 10 * Unless required by applicable law or agreed to in writing, software |
| 11 * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 * See the License for the specific language governing permissions and |
| 14 * limitations under the License. |
| 15 */ |
| 16 package com.github.rjeschke.neetutils; |
| 17 |
| 18 import java.nio.charset.Charset; |
| 19 |
| 20 /** |
| 21 * Charset constants for various charsets. |
| 22 * |
| 23 * @author René Jeschke (rene_jeschke@yahoo.de) |
| 24 */ |
| 25 public final class Charsets |
| 26 { |
| 27 private Charsets() |
| 28 { |
| 29 // meh! |
| 30 } |
| 31 |
| 32 public final static Charset UTF8 = Charset.forName("UTF-8"); |
| 33 public final static Charset UTF16 = Charset.forName("UTF-16"); |
| 34 public final static Charset UTF16BE = Charset.forName("UTF-16BE"); |
| 35 public final static Charset UTF16LE = Charset.forName("UTF-16LE"); |
| 36 public final static Charset UTF32 = Charset.forName("UTF-32"); |
| 37 public final static Charset UTF32BE = Charset.forName("UTF-32BE"); |
| 38 public final static Charset UTF32LE = Charset.forName("UTF-32LE"); |
| 39 public final static Charset ISO8859_1 = Charset.forName("ISO-8859-1"); |
| 40 public final static Charset ISO8859_2 = Charset.forName("ISO-8859-2"); |
| 41 public final static Charset ISO8859_3 = Charset.forName("ISO-8859-3"); |
| 42 public final static Charset ISO8859_4 = Charset.forName("ISO-8859-4"); |
| 43 public final static Charset ISO8859_5 = Charset.forName("ISO-8859-5"); |
| 44 public final static Charset ISO8859_6 = Charset.forName("ISO-8859-6"); |
| 45 public final static Charset ISO8859_7 = Charset.forName("ISO-8859-7"); |
| 46 public final static Charset ISO8859_8 = Charset.forName("ISO-8859-8"); |
| 47 public final static Charset ISO8859_9 = Charset.forName("ISO-8859-9"); |
| 48 public final static Charset ISO8859_13 = Charset.forName("ISO-8859-13"); |
| 49 public final static Charset ISO8859_15 = Charset.forName("ISO-8859-15"); |
| 50 public final static Charset ASCII = Charset.forName("US-ASCII"); |
| 51 public final static Charset WINDOWS_1250 = Charset.forName("windows-1250"); |
| 52 public final static Charset WINDOWS_1251 = Charset.forName("windows-1251"); |
| 53 public final static Charset WINDOWS_1252 = Charset.forName("windows-1252"); |
| 54 public final static Charset WINDOWS_1253 = Charset.forName("windows-1253"); |
| 55 public final static Charset WINDOWS_1254 = Charset.forName("windows-1254"); |
| 56 public final static Charset WINDOWS_1255 = Charset.forName("windows-1255"); |
| 57 public final static Charset WINDOWS_1256 = Charset.forName("windows-1256"); |
| 58 public final static Charset WINDOWS_1257 = Charset.forName("windows-1257"); |
| 59 public final static Charset WINDOWS_1258 = Charset.forName("windows-1258"); |
| 60 } |
OLD | NEW |