Java Doc for ServletContextWriter.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » util » 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 » Web Framework » struts 1.3.8 » org.apache.struts.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.io.PrintWriter
   org.apache.struts.util.ServletContextWriter

ServletContextWriter
public class ServletContextWriter extends PrintWriter (Code)
A PrintWriter implementation that uses the logging facilities of a javax.servlet.ServletContext to output its results. Output will be buffered until a newline character is output, flush() is called, or until one of the println() methods is called. Along the way, carriage return characters are skipped.
version:
   $Rev: 471754 $ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005)
version:
   $


Field Summary
protected  StringBufferbuffer
     The buffer into which we accumulate lines to be logged.
protected  ServletContextcontext
     The servlet context with which we are associated.
protected  booleanerror
     The error state for this stream.

Constructor Summary
public  ServletContextWriter(ServletContext context)
     Construct a ServletContextWriter associated with the specified ServletContext instance.

Method Summary
public  booleancheckError()
     Flush the stream and check for its error state.
public  voidclose()
     Close the stream.
public  voidflush()
     Flush the stream.
public  voidprint(boolean b)
     Print a boolean value.
public  voidprint(char c)
     Print a character value.
public  voidprint(char[] c)
     Print a character array.
public  voidprint(double d)
     Print a double value.
public  voidprint(float f)
     Print a float value.
public  voidprint(int i)
     Print an integer value.
public  voidprint(long l)
     Print a long value.
public  voidprint(Object o)
     Print an object.
public  voidprint(String s)
     Print a String value.
public  voidprintln()
     Terminate the current line and flush the buffer.
public  voidprintln(boolean b)
     Print a boolean value and terminate the line.
public  voidprintln(char c)
     Print a character value and terminate the line.
public  voidprintln(char[] c)
     Print a character array and terminate the line.
public  voidprintln(double d)
     Print a double value and terminate the line.
public  voidprintln(float f)
     Print a float value and terminate the line.
public  voidprintln(int i)
     Print an integer value and terminate the line.
public  voidprintln(long l)
     Print a long value and terminate the line.
public  voidprintln(Object o)
     Print an object and terminate the line.
public  voidprintln(String s)
     Print a String value and terminate the line.
public  voidsetError()
     Set the error state for this stream.
public  voidwrite(char c)
     Write a single character to this stream.
public  voidwrite(int c)
     Write a single character to this stream.
public  voidwrite(char[] buf)
     Write an array of charaters to this stream.
public  voidwrite(char[] buf, int off, int len)
     Write the specified subset of an array of characters to this stream.
public  voidwrite(String s)
     Write a String to this stream.
public  voidwrite(String s, int off, int len)
     Write the specified portion of a String to this stream.

Field Detail
buffer
protected StringBuffer buffer(Code)
The buffer into which we accumulate lines to be logged.



context
protected ServletContext context(Code)
The servlet context with which we are associated.



error
protected boolean error(Code)
The error state for this stream.




Constructor Detail
ServletContextWriter
public ServletContextWriter(ServletContext context)(Code)
Construct a ServletContextWriter associated with the specified ServletContext instance.
Parameters:
  context - The associated servlet context




Method Detail
checkError
public boolean checkError()(Code)
Flush the stream and check for its error state. IMPLEMENTATION NOTE - our associated servlet context gives no indication of problems with logging, so the only way this method will return true is if setError() is called.



close
public void close()(Code)
Close the stream.



flush
public void flush()(Code)
Flush the stream.



print
public void print(boolean b)(Code)
Print a boolean value.
Parameters:
  b - The value to be printed



print
public void print(char c)(Code)
Print a character value.
Parameters:
  c - The value to be printed



print
public void print(char[] c)(Code)
Print a character array.
Parameters:
  c - The character array to be printed



print
public void print(double d)(Code)
Print a double value.
Parameters:
  d - The value to be printed



print
public void print(float f)(Code)
Print a float value.
Parameters:
  f - The value to be printed



print
public void print(int i)(Code)
Print an integer value.
Parameters:
  i - The value to be printed



print
public void print(long l)(Code)
Print a long value.
Parameters:
  l - The value to be printed



print
public void print(Object o)(Code)
Print an object.
Parameters:
  o - The value to be printed



print
public void print(String s)(Code)
Print a String value.
Parameters:
  s - The value to be printed



println
public void println()(Code)
Terminate the current line and flush the buffer.



println
public void println(boolean b)(Code)
Print a boolean value and terminate the line.
Parameters:
  b - The value to be printed



println
public void println(char c)(Code)
Print a character value and terminate the line.
Parameters:
  c - The value to be printed



println
public void println(char[] c)(Code)
Print a character array and terminate the line.
Parameters:
  c - The character array to be printed



println
public void println(double d)(Code)
Print a double value and terminate the line.
Parameters:
  d - The value to be printed



println
public void println(float f)(Code)
Print a float value and terminate the line.
Parameters:
  f - The value to be printed



println
public void println(int i)(Code)
Print an integer value and terminate the line.
Parameters:
  i - The value to be printed



println
public void println(long l)(Code)
Print a long value and terminate the line.
Parameters:
  l - The value to be printed



println
public void println(Object o)(Code)
Print an object and terminate the line.
Parameters:
  o - The value to be printed



println
public void println(String s)(Code)
Print a String value and terminate the line.
Parameters:
  s - The value to be printed



setError
public void setError()(Code)
Set the error state for this stream.



write
public void write(char c)(Code)
Write a single character to this stream.
Parameters:
  c - The character to be written



write
public void write(int c)(Code)
Write a single character to this stream.
Parameters:
  c - The character to be written



write
public void write(char[] buf)(Code)
Write an array of charaters to this stream.
Parameters:
  buf - The character array to be written



write
public void write(char[] buf, int off, int len)(Code)
Write the specified subset of an array of characters to this stream.
Parameters:
  buf - The character array from which to write
Parameters:
  off - The zero-relative starting offset to write
Parameters:
  len - The number of characters to write



write
public void write(String s)(Code)
Write a String to this stream.
Parameters:
  s - The string to be written



write
public void write(String s, int off, int len)(Code)
Write the specified portion of a String to this stream.
Parameters:
  s - The String from which to write
Parameters:
  off - The zero-relative starting offset to write
Parameters:
  len - The number of characters to write



Fields inherited from java.io.PrintWriter
protected Writer out(Code)(Java Doc)

Methods inherited from java.io.PrintWriter
public PrintWriter append(CharSequence csq)(Code)(Java Doc)
public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc)
public PrintWriter append(char c)(Code)(Java Doc)
public boolean checkError()(Code)(Java Doc)
protected void clearError()(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void flush()(Code)(Java Doc)
public PrintWriter format(String format, Object... args)(Code)(Java Doc)
public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc)
public void print(boolean b)(Code)(Java Doc)
public void print(char c)(Code)(Java Doc)
public void print(int i)(Code)(Java Doc)
public void print(long l)(Code)(Java Doc)
public void print(float f)(Code)(Java Doc)
public void print(double d)(Code)(Java Doc)
public void print(char s)(Code)(Java Doc)
public void print(String s)(Code)(Java Doc)
public void print(Object obj)(Code)(Java Doc)
public PrintWriter printf(String format, Object... args)(Code)(Java Doc)
public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc)
public void println()(Code)(Java Doc)
public void println(boolean x)(Code)(Java Doc)
public void println(char x)(Code)(Java Doc)
public void println(int x)(Code)(Java Doc)
public void println(long x)(Code)(Java Doc)
public void println(float x)(Code)(Java Doc)
public void println(double x)(Code)(Java Doc)
public void println(char x)(Code)(Java Doc)
public void println(String x)(Code)(Java Doc)
public void println(Object x)(Code)(Java Doc)
protected void setError()(Code)(Java Doc)
public void write(int c)(Code)(Java Doc)
public void write(char buf, int off, int len)(Code)(Java Doc)
public void write(char buf)(Code)(Java Doc)
public void write(String s, int off, int len)(Code)(Java Doc)
public void write(String s)(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.