jdk/src/share/classes/java/util/logging/Handler.java
changeset 24196 61c9885d76e2
parent 22110 06e486bc20b6
equal deleted inserted replaced
24195:705325a63a58 24196:61c9885d76e2
   156      * Set a <tt>Formatter</tt>.  This <tt>Formatter</tt> will be used
   156      * Set a <tt>Formatter</tt>.  This <tt>Formatter</tt> will be used
   157      * to format <tt>LogRecords</tt> for this <tt>Handler</tt>.
   157      * to format <tt>LogRecords</tt> for this <tt>Handler</tt>.
   158      * <p>
   158      * <p>
   159      * Some <tt>Handlers</tt> may not use <tt>Formatters</tt>, in
   159      * Some <tt>Handlers</tt> may not use <tt>Formatters</tt>, in
   160      * which case the <tt>Formatter</tt> will be remembered, but not used.
   160      * which case the <tt>Formatter</tt> will be remembered, but not used.
   161      * <p>
   161      *
   162      * @param newFormatter the <tt>Formatter</tt> to use (may not be null)
   162      * @param newFormatter the <tt>Formatter</tt> to use (may not be null)
   163      * @exception  SecurityException  if a security manager exists and if
   163      * @exception  SecurityException  if a security manager exists and if
   164      *             the caller does not have <tt>LoggingPermission("control")</tt>.
   164      *             the caller does not have <tt>LoggingPermission("control")</tt>.
   165      */
   165      */
   166     public synchronized void setFormatter(Formatter newFormatter) throws SecurityException {
   166     public synchronized void setFormatter(Formatter newFormatter) throws SecurityException {
   327      * This method checks if the <tt>LogRecord</tt> has an appropriate
   327      * This method checks if the <tt>LogRecord</tt> has an appropriate
   328      * <tt>Level</tt> and  whether it satisfies any <tt>Filter</tt>.  It also
   328      * <tt>Level</tt> and  whether it satisfies any <tt>Filter</tt>.  It also
   329      * may make other <tt>Handler</tt> specific checks that might prevent a
   329      * may make other <tt>Handler</tt> specific checks that might prevent a
   330      * handler from logging the <tt>LogRecord</tt>. It will return false if
   330      * handler from logging the <tt>LogRecord</tt>. It will return false if
   331      * the <tt>LogRecord</tt> is null.
   331      * the <tt>LogRecord</tt> is null.
   332      * <p>
   332      *
   333      * @param record  a <tt>LogRecord</tt>
   333      * @param record  a <tt>LogRecord</tt>
   334      * @return true if the <tt>LogRecord</tt> would be logged.
   334      * @return true if the <tt>LogRecord</tt> would be logged.
   335      *
   335      *
   336      */
   336      */
   337     public boolean isLoggable(LogRecord record) {
   337     public boolean isLoggable(LogRecord record) {