• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2000, 2014, 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 class Logger {
32 
Logger(java.lang.String name, java.lang.String resourceBundleName)33     protected Logger(java.lang.String name, java.lang.String resourceBundleName) {
34         throw new RuntimeException("Stub!");
35     }
36 
Logger( java.lang.String name, java.lang.String resourceBundleName, java.lang.Class<?> caller, java.util.logging.LogManager manager, boolean isSystemLogger)37     Logger(
38             java.lang.String name,
39             java.lang.String resourceBundleName,
40             java.lang.Class<?> caller,
41             java.util.logging.LogManager manager,
42             boolean isSystemLogger) {
43         throw new RuntimeException("Stub!");
44     }
45 
Logger(java.lang.String name)46     private Logger(java.lang.String name) {
47         throw new RuntimeException("Stub!");
48     }
49 
getGlobal()50     public static final java.util.logging.Logger getGlobal() {
51         throw new RuntimeException("Stub!");
52     }
53 
setCallersClassLoaderRef(java.lang.Class<?> caller)54     private void setCallersClassLoaderRef(java.lang.Class<?> caller) {
55         throw new RuntimeException("Stub!");
56     }
57 
getCallersClassLoader()58     private java.lang.ClassLoader getCallersClassLoader() {
59         throw new RuntimeException("Stub!");
60     }
61 
setLogManager(java.util.logging.LogManager manager)62     void setLogManager(java.util.logging.LogManager manager) {
63         throw new RuntimeException("Stub!");
64     }
65 
checkPermission()66     private void checkPermission() throws java.lang.SecurityException {
67         throw new RuntimeException("Stub!");
68     }
69 
demandLogger( java.lang.String name, java.lang.String resourceBundleName, java.lang.Class<?> caller)70     private static java.util.logging.Logger demandLogger(
71             java.lang.String name, java.lang.String resourceBundleName, java.lang.Class<?> caller) {
72         throw new RuntimeException("Stub!");
73     }
74 
getLogger(java.lang.String name)75     public static java.util.logging.Logger getLogger(java.lang.String name) {
76         throw new RuntimeException("Stub!");
77     }
78 
getLogger( java.lang.String name, java.lang.String resourceBundleName)79     public static java.util.logging.Logger getLogger(
80             java.lang.String name, java.lang.String resourceBundleName) {
81         throw new RuntimeException("Stub!");
82     }
83 
getPlatformLogger(java.lang.String name)84     static java.util.logging.Logger getPlatformLogger(java.lang.String name) {
85         throw new RuntimeException("Stub!");
86     }
87 
getAnonymousLogger()88     public static java.util.logging.Logger getAnonymousLogger() {
89         throw new RuntimeException("Stub!");
90     }
91 
getAnonymousLogger(java.lang.String resourceBundleName)92     public static java.util.logging.Logger getAnonymousLogger(java.lang.String resourceBundleName) {
93         throw new RuntimeException("Stub!");
94     }
95 
getResourceBundle()96     public java.util.ResourceBundle getResourceBundle() {
97         throw new RuntimeException("Stub!");
98     }
99 
getResourceBundleName()100     public java.lang.String getResourceBundleName() {
101         throw new RuntimeException("Stub!");
102     }
103 
setFilter(java.util.logging.Filter newFilter)104     public void setFilter(java.util.logging.Filter newFilter) throws java.lang.SecurityException {
105         throw new RuntimeException("Stub!");
106     }
107 
getFilter()108     public java.util.logging.Filter getFilter() {
109         throw new RuntimeException("Stub!");
110     }
111 
log(java.util.logging.LogRecord record)112     public void log(java.util.logging.LogRecord record) {
113         throw new RuntimeException("Stub!");
114     }
115 
doLog(java.util.logging.LogRecord lr)116     private void doLog(java.util.logging.LogRecord lr) {
117         throw new RuntimeException("Stub!");
118     }
119 
log(java.util.logging.Level level, java.lang.String msg)120     public void log(java.util.logging.Level level, java.lang.String msg) {
121         throw new RuntimeException("Stub!");
122     }
123 
log( java.util.logging.Level level, java.util.function.Supplier<java.lang.String> msgSupplier)124     public void log(
125             java.util.logging.Level level,
126             java.util.function.Supplier<java.lang.String> msgSupplier) {
127         throw new RuntimeException("Stub!");
128     }
129 
log(java.util.logging.Level level, java.lang.String msg, java.lang.Object param1)130     public void log(java.util.logging.Level level, java.lang.String msg, java.lang.Object param1) {
131         throw new RuntimeException("Stub!");
132     }
133 
log( java.util.logging.Level level, java.lang.String msg, java.lang.Object[] params)134     public void log(
135             java.util.logging.Level level, java.lang.String msg, java.lang.Object[] params) {
136         throw new RuntimeException("Stub!");
137     }
138 
log( java.util.logging.Level level, java.lang.String msg, java.lang.Throwable thrown)139     public void log(
140             java.util.logging.Level level, java.lang.String msg, java.lang.Throwable thrown) {
141         throw new RuntimeException("Stub!");
142     }
143 
log( java.util.logging.Level level, java.lang.Throwable thrown, java.util.function.Supplier<java.lang.String> msgSupplier)144     public void log(
145             java.util.logging.Level level,
146             java.lang.Throwable thrown,
147             java.util.function.Supplier<java.lang.String> msgSupplier) {
148         throw new RuntimeException("Stub!");
149     }
150 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg)151     public void logp(
152             java.util.logging.Level level,
153             java.lang.String sourceClass,
154             java.lang.String sourceMethod,
155             java.lang.String msg) {
156         throw new RuntimeException("Stub!");
157     }
158 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.util.function.Supplier<java.lang.String> msgSupplier)159     public void logp(
160             java.util.logging.Level level,
161             java.lang.String sourceClass,
162             java.lang.String sourceMethod,
163             java.util.function.Supplier<java.lang.String> msgSupplier) {
164         throw new RuntimeException("Stub!");
165     }
166 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg, java.lang.Object param1)167     public void logp(
168             java.util.logging.Level level,
169             java.lang.String sourceClass,
170             java.lang.String sourceMethod,
171             java.lang.String msg,
172             java.lang.Object param1) {
173         throw new RuntimeException("Stub!");
174     }
175 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg, java.lang.Object[] params)176     public void logp(
177             java.util.logging.Level level,
178             java.lang.String sourceClass,
179             java.lang.String sourceMethod,
180             java.lang.String msg,
181             java.lang.Object[] params) {
182         throw new RuntimeException("Stub!");
183     }
184 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg, java.lang.Throwable thrown)185     public void logp(
186             java.util.logging.Level level,
187             java.lang.String sourceClass,
188             java.lang.String sourceMethod,
189             java.lang.String msg,
190             java.lang.Throwable thrown) {
191         throw new RuntimeException("Stub!");
192     }
193 
logp( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Throwable thrown, java.util.function.Supplier<java.lang.String> msgSupplier)194     public void logp(
195             java.util.logging.Level level,
196             java.lang.String sourceClass,
197             java.lang.String sourceMethod,
198             java.lang.Throwable thrown,
199             java.util.function.Supplier<java.lang.String> msgSupplier) {
200         throw new RuntimeException("Stub!");
201     }
202 
doLog(java.util.logging.LogRecord lr, java.lang.String rbname)203     private void doLog(java.util.logging.LogRecord lr, java.lang.String rbname) {
204         throw new RuntimeException("Stub!");
205     }
206 
doLog(java.util.logging.LogRecord lr, java.util.ResourceBundle rb)207     private void doLog(java.util.logging.LogRecord lr, java.util.ResourceBundle rb) {
208         throw new RuntimeException("Stub!");
209     }
210 
211     @Deprecated
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String bundleName, java.lang.String msg)212     public void logrb(
213             java.util.logging.Level level,
214             java.lang.String sourceClass,
215             java.lang.String sourceMethod,
216             java.lang.String bundleName,
217             java.lang.String msg) {
218         throw new RuntimeException("Stub!");
219     }
220 
221     @Deprecated
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String bundleName, java.lang.String msg, java.lang.Object param1)222     public void logrb(
223             java.util.logging.Level level,
224             java.lang.String sourceClass,
225             java.lang.String sourceMethod,
226             java.lang.String bundleName,
227             java.lang.String msg,
228             java.lang.Object param1) {
229         throw new RuntimeException("Stub!");
230     }
231 
232     @Deprecated
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String bundleName, java.lang.String msg, java.lang.Object[] params)233     public void logrb(
234             java.util.logging.Level level,
235             java.lang.String sourceClass,
236             java.lang.String sourceMethod,
237             java.lang.String bundleName,
238             java.lang.String msg,
239             java.lang.Object[] params) {
240         throw new RuntimeException("Stub!");
241     }
242 
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.util.ResourceBundle bundle, java.lang.String msg, java.lang.Object... params)243     public void logrb(
244             java.util.logging.Level level,
245             java.lang.String sourceClass,
246             java.lang.String sourceMethod,
247             java.util.ResourceBundle bundle,
248             java.lang.String msg,
249             java.lang.Object... params) {
250         throw new RuntimeException("Stub!");
251     }
252 
253     @Deprecated
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String bundleName, java.lang.String msg, java.lang.Throwable thrown)254     public void logrb(
255             java.util.logging.Level level,
256             java.lang.String sourceClass,
257             java.lang.String sourceMethod,
258             java.lang.String bundleName,
259             java.lang.String msg,
260             java.lang.Throwable thrown) {
261         throw new RuntimeException("Stub!");
262     }
263 
logrb( java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.util.ResourceBundle bundle, java.lang.String msg, java.lang.Throwable thrown)264     public void logrb(
265             java.util.logging.Level level,
266             java.lang.String sourceClass,
267             java.lang.String sourceMethod,
268             java.util.ResourceBundle bundle,
269             java.lang.String msg,
270             java.lang.Throwable thrown) {
271         throw new RuntimeException("Stub!");
272     }
273 
entering(java.lang.String sourceClass, java.lang.String sourceMethod)274     public void entering(java.lang.String sourceClass, java.lang.String sourceMethod) {
275         throw new RuntimeException("Stub!");
276     }
277 
entering( java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object param1)278     public void entering(
279             java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object param1) {
280         throw new RuntimeException("Stub!");
281     }
282 
entering( java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)283     public void entering(
284             java.lang.String sourceClass,
285             java.lang.String sourceMethod,
286             java.lang.Object[] params) {
287         throw new RuntimeException("Stub!");
288     }
289 
exiting(java.lang.String sourceClass, java.lang.String sourceMethod)290     public void exiting(java.lang.String sourceClass, java.lang.String sourceMethod) {
291         throw new RuntimeException("Stub!");
292     }
293 
exiting( java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object result)294     public void exiting(
295             java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object result) {
296         throw new RuntimeException("Stub!");
297     }
298 
throwing( java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Throwable thrown)299     public void throwing(
300             java.lang.String sourceClass,
301             java.lang.String sourceMethod,
302             java.lang.Throwable thrown) {
303         throw new RuntimeException("Stub!");
304     }
305 
severe(java.lang.String msg)306     public void severe(java.lang.String msg) {
307         throw new RuntimeException("Stub!");
308     }
309 
warning(java.lang.String msg)310     public void warning(java.lang.String msg) {
311         throw new RuntimeException("Stub!");
312     }
313 
info(java.lang.String msg)314     public void info(java.lang.String msg) {
315         throw new RuntimeException("Stub!");
316     }
317 
config(java.lang.String msg)318     public void config(java.lang.String msg) {
319         throw new RuntimeException("Stub!");
320     }
321 
fine(java.lang.String msg)322     public void fine(java.lang.String msg) {
323         throw new RuntimeException("Stub!");
324     }
325 
finer(java.lang.String msg)326     public void finer(java.lang.String msg) {
327         throw new RuntimeException("Stub!");
328     }
329 
finest(java.lang.String msg)330     public void finest(java.lang.String msg) {
331         throw new RuntimeException("Stub!");
332     }
333 
severe(java.util.function.Supplier<java.lang.String> msgSupplier)334     public void severe(java.util.function.Supplier<java.lang.String> msgSupplier) {
335         throw new RuntimeException("Stub!");
336     }
337 
warning(java.util.function.Supplier<java.lang.String> msgSupplier)338     public void warning(java.util.function.Supplier<java.lang.String> msgSupplier) {
339         throw new RuntimeException("Stub!");
340     }
341 
info(java.util.function.Supplier<java.lang.String> msgSupplier)342     public void info(java.util.function.Supplier<java.lang.String> msgSupplier) {
343         throw new RuntimeException("Stub!");
344     }
345 
config(java.util.function.Supplier<java.lang.String> msgSupplier)346     public void config(java.util.function.Supplier<java.lang.String> msgSupplier) {
347         throw new RuntimeException("Stub!");
348     }
349 
fine(java.util.function.Supplier<java.lang.String> msgSupplier)350     public void fine(java.util.function.Supplier<java.lang.String> msgSupplier) {
351         throw new RuntimeException("Stub!");
352     }
353 
finer(java.util.function.Supplier<java.lang.String> msgSupplier)354     public void finer(java.util.function.Supplier<java.lang.String> msgSupplier) {
355         throw new RuntimeException("Stub!");
356     }
357 
finest(java.util.function.Supplier<java.lang.String> msgSupplier)358     public void finest(java.util.function.Supplier<java.lang.String> msgSupplier) {
359         throw new RuntimeException("Stub!");
360     }
361 
setLevel(java.util.logging.Level newLevel)362     public void setLevel(java.util.logging.Level newLevel) throws java.lang.SecurityException {
363         throw new RuntimeException("Stub!");
364     }
365 
isLevelInitialized()366     final boolean isLevelInitialized() {
367         throw new RuntimeException("Stub!");
368     }
369 
getLevel()370     public java.util.logging.Level getLevel() {
371         throw new RuntimeException("Stub!");
372     }
373 
isLoggable(java.util.logging.Level level)374     public boolean isLoggable(java.util.logging.Level level) {
375         throw new RuntimeException("Stub!");
376     }
377 
getName()378     public java.lang.String getName() {
379         throw new RuntimeException("Stub!");
380     }
381 
addHandler(java.util.logging.Handler handler)382     public void addHandler(java.util.logging.Handler handler) throws java.lang.SecurityException {
383         throw new RuntimeException("Stub!");
384     }
385 
removeHandler(java.util.logging.Handler handler)386     public void removeHandler(java.util.logging.Handler handler)
387             throws java.lang.SecurityException {
388         throw new RuntimeException("Stub!");
389     }
390 
getHandlers()391     public java.util.logging.Handler[] getHandlers() {
392         throw new RuntimeException("Stub!");
393     }
394 
accessCheckedHandlers()395     java.util.logging.Handler[] accessCheckedHandlers() {
396         throw new RuntimeException("Stub!");
397     }
398 
setUseParentHandlers(boolean useParentHandlers)399     public void setUseParentHandlers(boolean useParentHandlers) {
400         throw new RuntimeException("Stub!");
401     }
402 
getUseParentHandlers()403     public boolean getUseParentHandlers() {
404         throw new RuntimeException("Stub!");
405     }
406 
findSystemResourceBundle(java.util.Locale locale)407     private static java.util.ResourceBundle findSystemResourceBundle(java.util.Locale locale) {
408         throw new RuntimeException("Stub!");
409     }
410 
findResourceBundle( java.lang.String name, boolean useCallersClassLoader)411     private synchronized java.util.ResourceBundle findResourceBundle(
412             java.lang.String name, boolean useCallersClassLoader) {
413         throw new RuntimeException("Stub!");
414     }
415 
setupResourceInfo( java.lang.String name, java.lang.Class<?> callersClass)416     private synchronized void setupResourceInfo(
417             java.lang.String name, java.lang.Class<?> callersClass) {
418         throw new RuntimeException("Stub!");
419     }
420 
setResourceBundle(java.util.ResourceBundle bundle)421     public void setResourceBundle(java.util.ResourceBundle bundle) {
422         throw new RuntimeException("Stub!");
423     }
424 
getParent()425     public java.util.logging.Logger getParent() {
426         throw new RuntimeException("Stub!");
427     }
428 
setParent(java.util.logging.Logger parent)429     public void setParent(java.util.logging.Logger parent) {
430         throw new RuntimeException("Stub!");
431     }
432 
doSetParent(java.util.logging.Logger newParent)433     private void doSetParent(java.util.logging.Logger newParent) {
434         throw new RuntimeException("Stub!");
435     }
436 
removeChildLogger(java.util.logging.LogManager.LoggerWeakRef child)437     final void removeChildLogger(java.util.logging.LogManager.LoggerWeakRef child) {
438         throw new RuntimeException("Stub!");
439     }
440 
updateEffectiveLevel()441     private void updateEffectiveLevel() {
442         throw new RuntimeException("Stub!");
443     }
444 
getEffectiveLoggerBundle()445     private java.util.logging.Logger.LoggerBundle getEffectiveLoggerBundle() {
446         throw new RuntimeException("Stub!");
447     }
448 
449     public static final java.lang.String GLOBAL_LOGGER_NAME = "global";
450 
451     private static final java.util.logging.Logger.LoggerBundle NO_RESOURCE_BUNDLE;
452 
453     static {
454         NO_RESOURCE_BUNDLE = null;
455     }
456 
457     private static final java.util.logging.Logger.LoggerBundle SYSTEM_BUNDLE;
458 
459     static {
460         SYSTEM_BUNDLE = null;
461     }
462 
463     static final java.lang.String SYSTEM_LOGGER_RB_NAME = "sun.util.logging.resources.logging";
464 
465     private boolean anonymous;
466 
467     private java.lang.ref.WeakReference<java.lang.ClassLoader> callersClassLoaderRef;
468 
469     private java.util.ResourceBundle catalog;
470 
471     private java.util.Locale catalogLocale;
472 
473     private java.lang.String catalogName;
474 
475     private static final java.util.logging.Handler[] emptyHandlers;
476 
477     static {
478         emptyHandlers = new java.util.logging.Handler[0];
479     }
480 
481     private volatile java.util.logging.Filter filter;
482 
483     @Deprecated public static final java.util.logging.Logger global;
484 
485     static {
486         global = null;
487     }
488 
489     private final java.util.concurrent.CopyOnWriteArrayList<java.util.logging.Handler> handlers;
490 
491     {
492         handlers = null;
493     }
494 
495     private final boolean isSystemLogger;
496 
497     {
498         isSystemLogger = false;
499     }
500 
501     private java.util.ArrayList<java.util.logging.LogManager.LoggerWeakRef> kids;
502 
503     private volatile java.util.logging.Level levelObject;
504 
505     private volatile int levelValue;
506 
507     private volatile java.util.logging.Logger.LoggerBundle loggerBundle;
508 
509     private volatile java.util.logging.LogManager manager;
510 
511     private java.lang.String name;
512 
513     private static final int offValue;
514 
515     static {
516         offValue = 0;
517     }
518 
519     private volatile java.util.logging.Logger parent;
520 
521     @UnsupportedAppUsage
522     private static final java.lang.Object treeLock;
523 
524     static {
525         treeLock = null;
526     }
527 
528     private volatile boolean useParentHandlers = true;
529 
530     @SuppressWarnings({"unchecked", "deprecation", "all"})
531     private static final class LoggerBundle {
532 
LoggerBundle(java.lang.String resourceBundleName, java.util.ResourceBundle bundle)533         private LoggerBundle(java.lang.String resourceBundleName, java.util.ResourceBundle bundle) {
534             throw new RuntimeException("Stub!");
535         }
536 
isSystemBundle()537         boolean isSystemBundle() {
538             throw new RuntimeException("Stub!");
539         }
540 
get( java.lang.String name, java.util.ResourceBundle bundle)541         static java.util.logging.Logger.LoggerBundle get(
542                 java.lang.String name, java.util.ResourceBundle bundle) {
543             throw new RuntimeException("Stub!");
544         }
545 
546         final java.lang.String resourceBundleName;
547 
548         {
549             resourceBundleName = null;
550         }
551 
552         final java.util.ResourceBundle userBundle;
553 
554         {
555             userBundle = null;
556         }
557     }
558 
559     @SuppressWarnings({"unchecked", "deprecation", "all"})
560     private static class SystemLoggerHelper {
561 
SystemLoggerHelper()562         private SystemLoggerHelper() {
563             throw new RuntimeException("Stub!");
564         }
565 
getBooleanProperty(java.lang.String key)566         private static boolean getBooleanProperty(java.lang.String key) {
567             throw new RuntimeException("Stub!");
568         }
569 
570         static boolean disableCallerCheck;
571     }
572 }
573