Add missing Javadoc comments.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2003-12-29 00:33:47 +00:00
parent a81eb0a684
commit 6aee782c67
1 changed files with 11 additions and 1 deletions

View File

@ -69,14 +69,24 @@
* *
* @author Alex Chaffee * @author Alex Chaffee
* @author Scott Stanchfield * @author Scott Stanchfield
* @author Gary D. Gregory
* @since 2.0 * @since 2.0
*/ */
class StringPrintWriter extends PrintWriter { class StringPrintWriter extends PrintWriter {
/**
* Constructs a new instance.
*/
public StringPrintWriter() { public StringPrintWriter() {
super(new StringWriter()); super(new StringWriter());
} }
/**
* Constructs a new instance using the specified initial string-buffer
* size.
*
* @param initialSize an int specifying the initial size of the buffer.
*/
public StringPrintWriter(int initialSize) { public StringPrintWriter(int initialSize) {
super(new StringWriter(initialSize)); super(new StringWriter(initialSize));
} }
@ -90,7 +100,7 @@ public StringPrintWriter(int initialSize) {
*/ */
public String getString() { public String getString() {
flush(); flush();
return ((StringWriter) out).toString(); return ((StringWriter) this.out).toString();
} }
} }