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.


Constructor Index

 o SizedStringWriter(int)
Create a StringWriter with an initial buffer of the specified size

Method Index

 o ensureCapacity(int)
Make sure the internal buffer is at least this big

Constructors

 o SizedStringWriter
 public SizedStringWriter(int size)
Create a StringWriter with an initial buffer of the specified size

Methods

 o 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