You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/05/11 21:04:24 UTC
(commons-net) 01/02: Javadoc
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit 64c9d20aa3f923abda5ae60f9d907332d5660d29
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat May 11 14:25:07 2024 -0400
Javadoc
---
src/main/java/org/apache/commons/net/PrintCommandListener.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/net/PrintCommandListener.java b/src/main/java/org/apache/commons/net/PrintCommandListener.java
index 28820da3..4b6000e9 100644
--- a/src/main/java/org/apache/commons/net/PrintCommandListener.java
+++ b/src/main/java/org/apache/commons/net/PrintCommandListener.java
@@ -32,12 +32,15 @@ import java.nio.charset.Charset;
public class PrintCommandListener implements ProtocolCommandListener {
/**
- * @param printStream
- * @return
+ * Creates a new PrintWriter using the default encoding.
+ *
+ * @param printStream the target PrintStream.
+ * @return a new PrintWriter.
*/
private static PrintWriter newPrintWriter(final PrintStream printStream) {
return new PrintWriter(new OutputStreamWriter(printStream, Charset.defaultCharset()));
}
+
private final PrintWriter writer;
private final boolean nologin;
private final char eolMarker;