Mercurial Hosting > luan
comparison src/org/eclipse/jetty/util/Utf8Appendable.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 3428c60d7cfc |
children |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
18 | 18 |
19 package org.eclipse.jetty.util; | 19 package org.eclipse.jetty.util; |
20 | 20 |
21 import java.io.IOException; | 21 import java.io.IOException; |
22 | 22 |
23 import org.eclipse.jetty.util.log.Log; | 23 import org.slf4j.Logger; |
24 import org.eclipse.jetty.util.log.Logger; | 24 import org.slf4j.LoggerFactory; |
25 | 25 |
26 /* ------------------------------------------------------------ */ | 26 /* ------------------------------------------------------------ */ |
27 /** | 27 /** |
28 * Utf8 Appendable abstract base class | 28 * Utf8 Appendable abstract base class |
29 * | 29 * |
47 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | 47 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
48 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 48 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
49 **/ | 49 **/ |
50 public abstract class Utf8Appendable | 50 public abstract class Utf8Appendable |
51 { | 51 { |
52 protected static final Logger LOG = Log.getLogger(Utf8Appendable.class); | 52 protected static final Logger LOG = LoggerFactory.getLogger(Utf8Appendable.class); |
53 public static final char REPLACEMENT = '\ufffd'; | 53 public static final char REPLACEMENT = '\ufffd'; |
54 private static final int UTF8_ACCEPT = 0; | 54 private static final int UTF8_ACCEPT = 0; |
55 private static final int UTF8_REJECT = 12; | 55 private static final int UTF8_REJECT = 12; |
56 | 56 |
57 protected final Appendable _appendable; | 57 protected final Appendable _appendable; |
229 { | 229 { |
230 throw new RuntimeException(e); | 230 throw new RuntimeException(e); |
231 } | 231 } |
232 Throwable th= new NotUtf8Exception("incomplete UTF8 sequence"); | 232 Throwable th= new NotUtf8Exception("incomplete UTF8 sequence"); |
233 LOG.warn(th.toString()); | 233 LOG.warn(th.toString()); |
234 LOG.debug(th); | 234 LOG.debug("",th); |
235 } | 235 } |
236 return _appendable.toString(); | 236 return _appendable.toString(); |
237 } | 237 } |
238 } | 238 } |