@@ -0,0 +1,2122 @@
+/**%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either %0A * version 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public %0A * License along with this library.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A * %0A **/%0Apackage lucee.commons.lang;%0A%0Aimport java.io.Externalizable;%0Aimport java.io.IOException;%0Aimport java.io.ObjectInput;%0Aimport java.io.ObjectOutput;%0Aimport java.nio.charset.Charset;%0A%0Aimport lucee.commons.io.CharsetUtil;%0A%0Apublic final class CharSet implements Externalizable  %7B%0A%0A%09public static final CharSet UTF8 = new CharSet(CharsetUtil.UTF8);%0A%09public static final CharSet ISO88591 = new CharSet(CharsetUtil.ISO88591);%0A%09public static final CharSet UTF16BE = new CharSet(CharsetUtil.UTF16BE);%0A%09public static final CharSet UTF16LE = new CharSet(CharsetUtil.UTF16LE);%0A%09public static final CharSet UTF32BE = new CharSet(CharsetUtil.UTF32BE);%0A%09%09%0A%09private transient java.nio.charset.Charset charset;%0A%0A%09/**%0A%09 * NEVER USE THIS CONSTRUCTOR DIRECTLY, THIS IS FOR Externalizable ONLY%0A%09 */%0A%09public CharSet()%7B%0A%09%7D%0A%09public CharSet(String charsetName)%7B%0A%09%09this.charset=java.nio.charset.Charset.forName(charsetName);%0A%09%7D%0A%09public CharSet(java.nio.charset.Charset charset)%7B%0A%09%09this.charset=charset;%0A%09%7D%0A%0A%09@Override%0A%09public void writeExternal(ObjectOutput out) throws IOException %7B%0A%09%09out.writeUTF(charset.name());%0A%09%7D%0A%0A%09@Override%0A%09public void readExternal(ObjectInput in) throws IOException,ClassNotFoundException %7B%0A%09%09this.charset=java.nio.charset.Charset.forName(in.readUTF());%0A%09%7D%0A%0A%09public String toString() %7B%0A%09%09return charset.name();%0A%09%7D%0A%09%0A%09public String name() %7B%0A%09%09return charset.name();%0A%09%7D%0A%09%0A%09public java.nio.charset.Charset toCharset() %7B%0A%09%09return charset;%0A%09%7D%0A%7D

add file again