ElegantJCharts Java API Specification v2.0

com.elegantj.net.ftp
Class UserDTP

java.lang.Object
  |
  +--com.elegantj.net.ftp.UserDTP

public class UserDTP
extends java.lang.Object

This class encapsulates User Data Transfer process (User DTP).


Constructor Summary
UserDTP()
           
 
Method Summary
 java.io.DataInputStream getBinaryInputStream()
          Method which returns the binary input stream.
 java.io.OutputStream getOutputStream()
          Method which returns the asci output stream.
 void userDTPCloseAsciInputStream()
          Method to close ascii Input stream.
 void userDTPCloseAsciOutputStream()
          Method to close ascii Output stream.
 void userDTPCloseBinaryInputStream()
          Method to close binary Input stream.
 void userDTPCloseBinaryOutputStream()
          Method to close binary Output stream.
 void userDTPCloseDataConnection()
          Method to close the data connection.
 java.lang.String userDTPGetAsciData()
          Method to receive ascii data from data connection.
 void userDTPGetBinaryData(java.io.File filename, long restartPoint)
          Method to receive binary data from data connection and save it in a local file.
 int userDTPGetServerSocket()
          Method which opens a server socket and returns the port on which user DTP is listening.
 void userDTPOpenAsciInputStream()
          Method to open the ASCII Input stream.
 void userDTPOpenAsciOutputStream()
          Method to open the ASCII Output stream.
 void userDTPOpenBinaryInputStream()
          Method to open the binary Input stream.
 void userDTPOpenBinaryOutputStream()
          Method to open the binary Output stream.
 void userDTPOpenDataConnection()
          Method to open the data connection.
 void userDTPSendBinaryData(java.io.File filename, long restartPoint)
          Method to send binary data from a local file to FTP server on data connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDTP

public UserDTP()
Method Detail

userDTPGetServerSocket

public int userDTPGetServerSocket()
Method which opens a server socket and returns the port on which user DTP is listening.


userDTPOpenDataConnection

public void userDTPOpenDataConnection()
Method to open the data connection.


userDTPOpenAsciInputStream

public void userDTPOpenAsciInputStream()
Method to open the ASCII Input stream.


userDTPOpenAsciOutputStream

public void userDTPOpenAsciOutputStream()
Method to open the ASCII Output stream.


userDTPOpenBinaryInputStream

public void userDTPOpenBinaryInputStream()
Method to open the binary Input stream.


userDTPOpenBinaryOutputStream

public void userDTPOpenBinaryOutputStream()
Method to open the binary Output stream.


userDTPCloseDataConnection

public void userDTPCloseDataConnection()
Method to close the data connection.


userDTPCloseAsciInputStream

public void userDTPCloseAsciInputStream()
Method to close ascii Input stream.


userDTPCloseAsciOutputStream

public void userDTPCloseAsciOutputStream()
Method to close ascii Output stream.


userDTPCloseBinaryInputStream

public void userDTPCloseBinaryInputStream()
Method to close binary Input stream.


userDTPCloseBinaryOutputStream

public void userDTPCloseBinaryOutputStream()
Method to close binary Output stream.


userDTPGetAsciData

public java.lang.String userDTPGetAsciData()
Method to receive ascii data from data connection.

Returns:
The ascii data.

userDTPGetBinaryData

public void userDTPGetBinaryData(java.io.File filename,
                                 long restartPoint)
Method to receive binary data from data connection and save it in a local file.

Parameters:
filename - The file in which the data will be saved.
restartPoint - The restart point.

userDTPSendBinaryData

public void userDTPSendBinaryData(java.io.File filename,
                                  long restartPoint)
Method to send binary data from a local file to FTP server on data connection.

Parameters:
filename - The file from which the data will be send to FTP server.
restartPoint - The restart point.

getBinaryInputStream

public java.io.DataInputStream getBinaryInputStream()
Method which returns the binary input stream.

Returns:
The binary input stream.

getOutputStream

public java.io.OutputStream getOutputStream()
Method which returns the asci output stream.

Returns:
The asci output stream.

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.