Java Doc for VelocityWriter.java in  » Template-Engine » Velocity » org » apache » velocity » io » 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 » Template Engine » Velocity » org.apache.velocity.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.Writer
      org.apache.velocity.io.VelocityWriter

VelocityWriter
final public class VelocityWriter extends Writer (Code)
Implementation of a fast Writer. It was originally taken from JspWriter and modified to have less syncronization going on.
author:
   Jason van Zyl
author:
   Jon S. Stevens
author:
   Anil K. Vijendran
version:
   $Id: VelocityWriter.java 463298 2006-10-12 16:10:32Z henning $


Field Summary
final public static  intDEFAULT_BUFFER
    
final public static  intNO_BUFFER
    
final public static  intUNBOUNDED_BUFFER
    

Constructor Summary
public  VelocityWriter(Writer writer)
     Create a buffered character-output stream that uses a default-sized output buffer.
public  VelocityWriter(Writer writer, int sz, boolean autoFlush)
     Create a new buffered character-output stream that uses an output buffer of the given size.

Method Summary
final public  voidclear()
     Discard the output buffer.
final public  voidclose()
     Close the stream.
final public  voidflush()
     Flush the stream.
public  intgetBufferSize()
     This method returns the size of the buffer used by the JspWriter.
final public  intgetRemaining()
    
public  booleanisAutoFlush()
     This method indicates whether the JspWriter is autoFlushing.
final public  voidrecycle(Writer writer)
    
final public  voidwrite(int c)
     Write a single character.
final public  voidwrite(char cbuf, int off, int len)
     Write a portion of an array of characters.

Ordinarily this method stores characters from the given array into this stream's buffer, flushing the buffer to the underlying stream as needed.

final public  voidwrite(char buf)
     Write an array of characters.
final public  voidwrite(String s, int off, int len)
     Write a portion of a String.
final public  voidwrite(String s)
     Write a string.

Field Detail
DEFAULT_BUFFER
final public static int DEFAULT_BUFFER(Code)
constant indicating that the Writer is buffered and is using the implementation default buffer size



NO_BUFFER
final public static int NO_BUFFER(Code)
constant indicating that the Writer is not buffering output



UNBOUNDED_BUFFER
final public static int UNBOUNDED_BUFFER(Code)
constant indicating that the Writer is buffered and is unbounded; this is used in BodyContent




Constructor Detail
VelocityWriter
public VelocityWriter(Writer writer)(Code)
Create a buffered character-output stream that uses a default-sized output buffer.
Parameters:
  writer - Writer to wrap around



VelocityWriter
public VelocityWriter(Writer writer, int sz, boolean autoFlush)(Code)
Create a new buffered character-output stream that uses an output buffer of the given size.
Parameters:
  writer - Writer to wrap around
Parameters:
  sz - Output-buffer size, a positive integer
Parameters:
  autoFlush -
exception:
  IllegalArgumentException - If sz is <= 0




Method Detail
clear
final public void clear()(Code)
Discard the output buffer.



close
final public void close() throws IOException(Code)
Close the stream.
throws:
  IOException -



flush
final public void flush() throws IOException(Code)
Flush the stream.
throws:
  IOException -



getBufferSize
public int getBufferSize()(Code)
This method returns the size of the buffer used by the JspWriter. the size of the buffer in bytes, or 0 is unbuffered.



getRemaining
final public int getRemaining()(Code)
the number of bytes unused in the buffer



isAutoFlush
public boolean isAutoFlush()(Code)
This method indicates whether the JspWriter is autoFlushing. if this JspWriter is auto flushing or throwing IOExceptions onbuffer overflow conditions



recycle
final public void recycle(Writer writer)(Code)
resets this class so that it can be reused
Parameters:
  writer -



write
final public void write(int c) throws IOException(Code)
Write a single character.
Parameters:
  c -
throws:
  IOException -



write
final public void write(char cbuf, int off, int len) throws IOException(Code)
Write a portion of an array of characters.

Ordinarily this method stores characters from the given array into this stream's buffer, flushing the buffer to the underlying stream as needed. If the requested length is at least as large as the buffer, however, then this method will flush the buffer and write the characters directly to the underlying stream. Thus redundant DiscardableBufferedWriters will not copy data unnecessarily.
Parameters:
  cbuf - A character array
Parameters:
  off - Offset from which to start reading characters
Parameters:
  len - Number of characters to write
throws:
  IOException -




write
final public void write(char buf) throws IOException(Code)
Write an array of characters. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.
Parameters:
  buf -
throws:
  IOException -



write
final public void write(String s, int off, int len) throws IOException(Code)
Write a portion of a String.
Parameters:
  s - String to be written
Parameters:
  off - Offset from which to start reading characters
Parameters:
  len - Number of characters to be written
throws:
  IOException -



write
final public void write(String s) throws IOException(Code)
Write a string. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.
Parameters:
  s -
throws:
  IOException -



Fields inherited from java.io.Writer
protected Object lock(Code)(Java Doc)

Methods inherited from java.io.Writer
public Writer append(CharSequence csq) throws IOException(Code)(Java Doc)
public Writer append(CharSequence csq, int start, int end) throws IOException(Code)(Java Doc)
public Writer append(char c) throws IOException(Code)(Java Doc)
abstract public void close() throws IOException(Code)(Java Doc)
abstract public void flush() throws IOException(Code)(Java Doc)
public void write(int c) throws IOException(Code)(Java Doc)
public void write(char cbuf) throws IOException(Code)(Java Doc)
abstract public void write(char cbuf, int off, int len) throws IOException(Code)(Java Doc)
public void write(String str) throws IOException(Code)(Java Doc)
public void write(String str, int off, int len) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.