org.apache.ftpserver
Class FtpWriter

java.lang.Object
  extended byjava.io.Writer
      extended byorg.apache.ftpserver.FtpWriter

public class FtpWriter
extends java.io.Writer

Writer object used by the server. It has the spying capability.

Author:
Rana Bhattacharyya

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FtpWriter(java.net.Socket soc, FtpConfig config)
          Constructor - set the actual writer object
 
Method Summary
 void close()
          Close writer.
 void flush()
          Flush the stream
 SpyConnectionInterface getSpyObject()
          Get the spy object to get what the user is writing.
 void setSpyObject(SpyConnectionInterface spy)
          Set the connection spy object.
 void write(char[] cbuf)
          Write a character array.
 void write(char[] cbuf, int off, int len)
          Write a portion of character array
 void write(int c)
          Write a single character
 void write(java.lang.String str)
          Write a string
 void write(java.lang.String str, int off, int len)
          Write a portion of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpWriter

public FtpWriter(java.net.Socket soc,
                 FtpConfig config)
          throws java.io.IOException
Constructor - set the actual writer object

Method Detail

getSpyObject

public SpyConnectionInterface getSpyObject()
Get the spy object to get what the user is writing.


setSpyObject

public void setSpyObject(SpyConnectionInterface spy)
Set the connection spy object.


write

public void write(char[] cbuf)
           throws java.io.IOException
Write a character array.

Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Write a portion of character array

Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Write a single character

Throws:
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Write a string

Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Write a portion of the string.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close writer.

Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flush the stream

Throws:
java.io.IOException


Copyright © 2001-2007 Codehaus. All Rights Reserved.