mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 03:55:10 +00:00
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:
parent
a81eb0a684
commit
6aee782c67
@ -69,14 +69,24 @@
|
||||
*
|
||||
* @author Alex Chaffee
|
||||
* @author Scott Stanchfield
|
||||
* @author Gary D. Gregory
|
||||
* @since 2.0
|
||||
*/
|
||||
class StringPrintWriter extends PrintWriter {
|
||||
|
||||
/**
|
||||
* Constructs a new instance.
|
||||
*/
|
||||
public StringPrintWriter() {
|
||||
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) {
|
||||
super(new StringWriter(initialSize));
|
||||
}
|
||||
@ -90,7 +100,7 @@ public StringPrintWriter(int initialSize) {
|
||||
*/
|
||||
public String getString() {
|
||||
flush();
|
||||
return ((StringWriter) out).toString();
|
||||
return ((StringWriter) this.out).toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user