All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.util.SizedStringWriter
java.lang.Object
|
+----java.io.Writer
|
+----java.io.StringWriter
|
+----org.webmacro.util.SizedStringWriter
- public final class SizedStringWriter
- extends StringWriter
For some ridiculous reason the StringWriter in java.io has a
constructor to set the size of the initial buffer that is protected
instead of public. This class opens it up. For convenience I've also
added the ensureCapacity argument as well.
-
SizedStringWriter(int)
-
Create a StringWriter with an initial buffer of the specified size
-
ensureCapacity(int)
- Make sure the internal buffer is at least this big
SizedStringWriter
public SizedStringWriter(int size)
- Create a StringWriter with an initial buffer of the specified size
ensureCapacity
public final synchronized void ensureCapacity(int minimumCapacity)
- Make sure the internal buffer is at least this big
All Packages Class Hierarchy This Package Previous Next Index