com.Prominic.jFTPd
Class CRLFPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by com.Prominic.jFTPd.CRLFPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class CRLFPrintWriter
extends java.io.PrintWriter

As stated in the RFC for FTP, the commands that are sent/received during the communication Creation date: (10/9/2001 7:44:09 PM)


Field Summary
static java.lang.String CRLF
          Standard CRLF line ending.
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CRLFPrintWriter(java.io.OutputStream out, boolean autoFlush)
          Default constructor.
 
Method Summary
 void printLine(java.lang.String line)
          Prints a line.
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static java.lang.String CRLF
Standard CRLF line ending.

Constructor Detail

CRLFPrintWriter

public CRLFPrintWriter(java.io.OutputStream out,
                       boolean autoFlush)
Default constructor. It creates a CRLFPrintWriter over an existing output stream and takes an additional parameter to do autoflush.

Parameters:
out - exporting - underlying output stream
autoFlush - - do flush after each write.
Method Detail

printLine

public void printLine(java.lang.String line)
Prints a line. CRLF is not appended on the fly.

Parameters:
line - - line to be sent out on the stream. Creation date: (10/9/2001 7:44:31 PM)