Author: markt Date: Fri Apr 28 18:43:55 2017 New Revision: 1793127 URL: http://svn.apache.org/viewvc?rev=1793127&view=rev Log: Deprecate unused method
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java?rev=1793127&r1=1793126&r2=1793127&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java Fri Apr 28 18:43:55 2017 @@ -55,6 +55,17 @@ public class B2CConverter { } } + + /** + * Obtain the Charset for the given encoding + * + * @param enc The name of the encoding for the required charset + * + * @return The Charset corresponding to the requested encoding + * + * @throws UnsupportedEncodingException If the requested Charset is not + * available + */ public static Charset getCharset(String enc) throws UnsupportedEncodingException { @@ -64,6 +75,7 @@ public class B2CConverter { return getCharsetLower(lowerCaseEnc); } + /** * Only to be used when it is known that the encoding name is in lower case. * @param lowerCaseEnc The name of the encoding for the required charset in @@ -73,7 +85,10 @@ public class B2CConverter { * * @throws UnsupportedEncodingException If the requested Charset is not * available + * + * @deprecated Will be removed in Tomcat 9.0.x */ + @Deprecated public static Charset getCharsetLower(String lowerCaseEnc) throws UnsupportedEncodingException { @@ -87,6 +102,7 @@ public class B2CConverter { return charset; } + private final CharsetDecoder decoder; private ByteBuffer bb = null; private CharBuffer cb = null; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org