1 /** 2 * This file is part of Waarp Project. 3 * 4 * Copyright 2009, Frederic Bregier, and individual contributors by the @author tags. See the 5 * COPYRIGHT.txt in the distribution for a full listing of individual contributors. 6 * 7 * All Waarp Project is free software: you can redistribute it and/or modify it under the terms of 8 * the GNU General Public License as published by the Free Software Foundation, either version 3 of 9 * the License, or (at your option) any later version. 10 * 11 * Waarp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even 12 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 13 * Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along with Waarp . If not, see 16 * <http://www.gnu.org/licenses/>. 17 */ 18 package org.waarp.ftp.core.control; 19 20 import java.nio.charset.Charset; 21 22 import io.netty.handler.codec.string.StringEncoder; 23 24 /** 25 * Exactly same as StringEncoder from Netty 26 * 27 * @author Frederic Bregier 28 * 29 */ 30 class FtpControlStringEncoder extends StringEncoder { 31 /** 32 * 33 */ 34 public FtpControlStringEncoder() { 35 } 36 37 /** 38 * @see StringEncoder 39 * @param arg0 40 */ 41 public FtpControlStringEncoder(String arg0) { 42 super(Charset.forName(arg0)); 43 } 44 45 /** 46 * @see StringEncoder 47 * @param arg0 48 */ 49 public FtpControlStringEncoder(Charset arg0) { 50 super(arg0); 51 } 52 }