com.etasoft.trans.io
Class axFtpReader

java.lang.Object
  extended bycom.etasoft.trans.io.axReader
      extended bycom.etasoft.trans.io.axFtpReader

public class axFtpReader
extends axReader

FTP reader.


Constructor Summary
axFtpReader(java.lang.String ftpPath, axInputParameters inputParams)
          Connect to FTP server and open input stream.
 
Method Summary
 void close()
          Used in axReaderIterator.
static java.util.ArrayList getList(java.lang.String dataPath)
          Get list of files matching wildcard criterion in dataPath.
 void open(java.lang.String ftpPath, axInputParameters inputParams)
          Open ftp connection for the reader.
 int read(char[] cbuf)
          Used in axReaderIterator.
 
Methods inherited from class com.etasoft.trans.io.axReader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

axFtpReader

public axFtpReader(java.lang.String ftpPath,
                   axInputParameters inputParams)
            throws axException
Connect to FTP server and open input stream. ftpPath example user01:pass1234@ftp.foo.com/README.txt;type=i

Method Detail

open

public void open(java.lang.String ftpPath,
                 axInputParameters inputParams)
          throws axException
Open ftp connection for the reader.

Specified by:
open in class axReader
Throws:
axException

getList

public static java.util.ArrayList getList(java.lang.String dataPath)
Get list of files matching wildcard criterion in dataPath.


close

public void close()
           throws axException
Used in axReaderIterator.

Specified by:
close in class axReader
Throws:
axException

read

public int read(char[] cbuf)
         throws axException
Used in axReaderIterator.

Overrides:
read in class axReader
Throws:
axException