Java Doc for Handler.java in  » Apache-Harmony-Java-SE » java-package » java » util » logging » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util.logging 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.logging.Handler

All known Subclasses:   java.util.logging.MemoryHandler,  java.util.logging.StreamHandler,
Handler
abstract public class Handler (Code)
A Handler object accepts a logging request and exports the desired messages to a target, for example, a file, the console, etc. It can be disabled by setting its logging level to Level.OFF.



Constructor Summary
protected  Handler()
     Constructs a Handler object with a default error manager, the default encoding, and the default logging level Level.ALL.

Method Summary
abstract public  voidclose()
     Closes this handler.
abstract public  voidflush()
     Flushes any buffered output.
public  StringgetEncoding()
     Gets the character encoding used by this handler.
public  ErrorManagergetErrorManager()
     Gets the error manager used by this handler to report errors during logging.
public  FiltergetFilter()
     Gets the filter used by this handler.
public  FormattergetFormatter()
     Gets the formatter used by this handler to format the logging messages.
public  LevelgetLevel()
     Gets the logging level of this handler.
 voidinitProperties(String defaultLevel, String defaultFilter, String defaultFormatter, String defaultEncoding)
    
 voidinternalSetEncoding(String newEncoding)
     Sets the character encoding used by this handler.
 voidinternalSetFormatter(Formatter newFormatter)
     Sets the formatter to be used by this handler.
public  booleanisLoggable(LogRecord record)
     Determines whether the supplied log record need to be logged.
 voidprintInvalidPropMessage(String key, String value, Exception e)
    
abstract public  voidpublish(LogRecord record)
     Accepts an actual logging request.
protected  voidreportError(String msg, Exception ex, int code)
     Report an error to the error manager associated with this handler.
public  voidsetEncoding(String encoding)
     Sets the character encoding used by this handler.
public  voidsetErrorManager(ErrorManager em)
     Sets the error manager for this handler.
public  voidsetFilter(Filter newFilter)
     Sets the filter to be used by this handler.
public  voidsetFormatter(Formatter newFormatter)
     Sets the formatter to be used by this handler.
public  voidsetLevel(Level newLevel)
     Sets the logging level of this handler.


Constructor Detail
Handler
protected Handler()(Code)
Constructs a Handler object with a default error manager, the default encoding, and the default logging level Level.ALL. It has no filter and no formatter.




Method Detail
close
abstract public void close()(Code)
Closes this handler. A flush operation will usually be performed and all the associated resources will be freed. Client applications should not use a handler after closing it.
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



flush
abstract public void flush()(Code)
Flushes any buffered output.



getEncoding
public String getEncoding()(Code)
Gets the character encoding used by this handler. the character encoding used by this handler



getErrorManager
public ErrorManager getErrorManager()(Code)
Gets the error manager used by this handler to report errors during logging. the error manager used by this handler
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



getFilter
public Filter getFilter()(Code)
Gets the filter used by this handler. the filter used by this handler



getFormatter
public Formatter getFormatter()(Code)
Gets the formatter used by this handler to format the logging messages. the formatter used by this handler



getLevel
public Level getLevel()(Code)
Gets the logging level of this handler. the logging level of this handler



initProperties
void initProperties(String defaultLevel, String defaultFilter, String defaultFormatter, String defaultEncoding)(Code)



internalSetEncoding
void internalSetEncoding(String newEncoding) throws UnsupportedEncodingException(Code)
Sets the character encoding used by this handler. A null value indicates the using of the default encoding. This internal method does not check security.
Parameters:
  newEncoding - the character encoding to set
throws:
  UnsupportedEncodingException - If the specified encoding is not supported by the runtime.



internalSetFormatter
void internalSetFormatter(Formatter newFormatter)(Code)
Sets the formatter to be used by this handler. This internal method does not check security.
Parameters:
  newFormatter - the formatter to set



isLoggable
public boolean isLoggable(LogRecord record)(Code)
Determines whether the supplied log record need to be logged. The logging levels will be checked as well as the filter.
Parameters:
  record - the log record to be checked true if the supplied log record need to be logged,otherwise false



printInvalidPropMessage
void printInvalidPropMessage(String key, String value, Exception e)(Code)



publish
abstract public void publish(LogRecord record)(Code)
Accepts an actual logging request.
Parameters:
  record - the log record to be logged



reportError
protected void reportError(String msg, Exception ex, int code)(Code)
Report an error to the error manager associated with this handler.
Parameters:
  msg - the error message
Parameters:
  ex - the associated exception
Parameters:
  code - the error code



setEncoding
public void setEncoding(String encoding) throws SecurityException, UnsupportedEncodingException(Code)
Sets the character encoding used by this handler. A null value indicates the using of the default encoding.
Parameters:
  encoding - the character encoding to set
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.
throws:
  UnsupportedEncodingException - If the specified encoding is not supported by the runtime.



setErrorManager
public void setErrorManager(ErrorManager em)(Code)
Sets the error manager for this handler.
Parameters:
  em - the error manager to set
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



setFilter
public void setFilter(Filter newFilter)(Code)
Sets the filter to be used by this handler.
Parameters:
  newFilter - the filter to set
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



setFormatter
public void setFormatter(Formatter newFormatter)(Code)
Sets the formatter to be used by this handler.
Parameters:
  newFormatter - the formatter to set
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



setLevel
public void setLevel(Level newLevel)(Code)
Sets the logging level of this handler.
Parameters:
  newLevel - the logging level to set
throws:
  SecurityException - If a security manager determines that the caller does nothave the required permission.



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.