APIdia Launch Partner
Top Description Methods
sun.net.ftp

public Interface FtpDirParser

Known Direct Implementers
sun.net.ftp.impl.FtpClient.DefaultParser, sun.net.ftp.impl.FtpClient.MLSxParser

This interface describes a parser for the FtpClient class. Such a parser is used when listing a remote directory to transform text lines like: drwxr-xr-x 1 user01 ftp 512 Jan 29 23:32 prog into FtpDirEntry instances.
Since
1.7
See Also
java.net.FtpClient#setFileParser(FtpDirParser)

Method Summary

Modifier and TypeMethod and Description
public FtpDirEntry

Returns:

an FtpDirEntry instance.
parseLine
(String
a String, a line sent by the FTP server as a result of the LST command.
line
)

Takes one line from a directory listing and returns an FtpDirEntry instance based on the information contained.

Method Detail

parseLineback to summary
public FtpDirEntry parseLine(String line)

Takes one line from a directory listing and returns an FtpDirEntry instance based on the information contained.

Parameters
line:String

a String, a line sent by the FTP server as a result of the LST command.

Returns:FtpDirEntry

an FtpDirEntry instance.

See Also
java.net.FtpDirEntry