1 /*
2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package java.util.logging;
27 
28 import android.compat.annotation.UnsupportedAppUsage;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public abstract class Handler {
32 
Handler()33     protected Handler() {
34         throw new RuntimeException("Stub!");
35     }
36 
publish(java.util.logging.LogRecord record)37     public abstract void publish(java.util.logging.LogRecord record);
38 
flush()39     public abstract void flush();
40 
close()41     public abstract void close() throws java.lang.SecurityException;
42 
setFormatter(java.util.logging.Formatter newFormatter)43     public synchronized void setFormatter(java.util.logging.Formatter newFormatter)
44             throws java.lang.SecurityException {
45         throw new RuntimeException("Stub!");
46     }
47 
getFormatter()48     public java.util.logging.Formatter getFormatter() {
49         throw new RuntimeException("Stub!");
50     }
51 
setEncoding(java.lang.String encoding)52     public synchronized void setEncoding(java.lang.String encoding)
53             throws java.lang.SecurityException, java.io.UnsupportedEncodingException {
54         throw new RuntimeException("Stub!");
55     }
56 
getEncoding()57     public java.lang.String getEncoding() {
58         throw new RuntimeException("Stub!");
59     }
60 
setFilter(java.util.logging.Filter newFilter)61     public synchronized void setFilter(java.util.logging.Filter newFilter)
62             throws java.lang.SecurityException {
63         throw new RuntimeException("Stub!");
64     }
65 
getFilter()66     public java.util.logging.Filter getFilter() {
67         throw new RuntimeException("Stub!");
68     }
69 
setErrorManager(java.util.logging.ErrorManager em)70     public synchronized void setErrorManager(java.util.logging.ErrorManager em) {
71         throw new RuntimeException("Stub!");
72     }
73 
getErrorManager()74     public java.util.logging.ErrorManager getErrorManager() {
75         throw new RuntimeException("Stub!");
76     }
77 
reportError(java.lang.String msg, java.lang.Exception ex, int code)78     protected void reportError(java.lang.String msg, java.lang.Exception ex, int code) {
79         throw new RuntimeException("Stub!");
80     }
81 
setLevel(java.util.logging.Level newLevel)82     public synchronized void setLevel(java.util.logging.Level newLevel)
83             throws java.lang.SecurityException {
84         throw new RuntimeException("Stub!");
85     }
86 
getLevel()87     public java.util.logging.Level getLevel() {
88         throw new RuntimeException("Stub!");
89     }
90 
isLoggable(java.util.logging.LogRecord record)91     public boolean isLoggable(java.util.logging.LogRecord record) {
92         throw new RuntimeException("Stub!");
93     }
94 
checkPermission()95     void checkPermission() throws java.lang.SecurityException {
96         throw new RuntimeException("Stub!");
97     }
98 
99     private volatile java.lang.String encoding;
100 
101     private volatile java.util.logging.ErrorManager errorManager;
102 
103     private volatile java.util.logging.Filter filter;
104 
105     private volatile java.util.logging.Formatter formatter;
106 
107     private volatile java.util.logging.Level logLevel;
108 
109     private final java.util.logging.LogManager manager;
110 
111     {
112         manager = null;
113     }
114 
115     private static final int offValue;
116 
117     static {
118         offValue = 0;
119     }
120 
121     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
122     boolean sealed = true;
123 }
124