org.apache.myfaces.application.pss
Class FastStringWriter
java.lang.Object
java.io.Writer
org.apache.myfaces.application.pss.FastStringWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Direct Known Subclasses:
- BufferedStringWriter
public class FastStringWriter
- extends Writer
|
Constructor Summary |
FastStringWriter()
Constructs a new FastStringWriter instance
using the default capacity of 16. |
FastStringWriter(int initialCapacity)
Constructs a new FastStringWriter instance
using the specified initialCapacity. |
_buffer
protected StringBuffer _buffer
FastStringWriter
public FastStringWriter()
Constructs a new FastStringWriter instance
using the default capacity of 16.
FastStringWriter
public FastStringWriter(int initialCapacity)
Constructs a new FastStringWriter instance
using the specified initialCapacity.
- Parameters:
initialCapacity - specifies the initial capacity of the buffer
- Throws:
IllegalArgumentException - if initialCapacity is less than zero
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- noop
- Specified by:
flush in interface Flushable- Specified by:
flush in class Writer
- Throws:
IOException
close
public void close()
throws IOException
- noop
- Specified by:
close in interface Closeable- Specified by:
close in class Writer
- Throws:
IOException
write
public void write(String str)
- Overrides:
write in class Writer
write
public void write(String str,
int off,
int len)
- Overrides:
write in class Writer
getBuffer
public StringBuffer getBuffer()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.