Author: byron
Date: Sat Feb 21 16:45:13 2009
New Revision: 746539
URL: http://svn.apache.org/viewvc?rev=746539&view=rev
Log:
Remove unneeded FilterWriter
Removed:
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/FilterWriter.java
Modified:
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/VelocityWriter.java
Modified:
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/VelocityWriter.java
URL:
http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/VelocityWriter.java?rev=746539&r1=746538&r2=746539&view=diff
==============================================================================
---
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/VelocityWriter.java
(original)
+++
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/io/VelocityWriter.java
Sat Feb 21 16:45:13 2009
@@ -31,7 +31,7 @@
* @author Anil K. Vijendran
* @version $Id$
*/
-public final class VelocityWriter extends FilterWriter
+public final class VelocityWriter implements Filter
{
/**
* constant indicating that the Writer is not buffering output
@@ -50,6 +50,8 @@
*/
public static final int UNBOUNDED_BUFFER = -2;
+ private Writer writer = null;
+
private int bufferSize;
private boolean autoFlush;
@@ -331,4 +333,15 @@
this.writer = writer;
clear();
}
+
+ /**
+ * Send the content of a reference, e.g.; $foo, to the writer.
+ * The default implementation is to call the wrapped Writer's
+ * write(String) method.
+ */
+ public void writeReference(String ref) throws IOException
+ {
+ write(ref);
+ }
+
}