Enum StandardFTPFileStrategyFactory
- java.lang.Object
-
- java.lang.Enum<StandardFTPFileStrategyFactory>
-
- com.github.robtimus.filesystems.ftp.StandardFTPFileStrategyFactory
-
- All Implemented Interfaces:
FTPFileStrategyFactory
,Serializable
,Comparable<StandardFTPFileStrategyFactory>
public enum StandardFTPFileStrategyFactory extends Enum<StandardFTPFileStrategyFactory> implements FTPFileStrategyFactory
Defines the standardFTPFileStrategy
factories.- Author:
- Rob Spoor
- Since:
- 2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_DETECT
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.autoDetect()
.NON_UNIX
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.nonUnix()
.UNIX
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.unix()
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FTPFileStrategy
createFTPFileStrategy()
Creates anFTPFileStrategy
.static StandardFTPFileStrategyFactory
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardFTPFileStrategyFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIX
public static final StandardFTPFileStrategyFactory UNIX
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.unix()
.
-
NON_UNIX
public static final StandardFTPFileStrategyFactory NON_UNIX
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.nonUnix()
.
-
AUTO_DETECT
public static final StandardFTPFileStrategyFactory AUTO_DETECT
AnFTPFileStrategy
factory that delegates toFTPFileStrategy.autoDetect()
.
-
-
Method Detail
-
values
public static StandardFTPFileStrategyFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardFTPFileStrategyFactory c : StandardFTPFileStrategyFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardFTPFileStrategyFactory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createFTPFileStrategy
public FTPFileStrategy createFTPFileStrategy()
Description copied from interface:FTPFileStrategyFactory
Creates anFTPFileStrategy
. ThisFTPFileStrategy
will be tied to a specific FTP file system.Note: it is allowed to return shared instances if these do not contain any state that is specific to an FTP file system.
- Specified by:
createFTPFileStrategy
in interfaceFTPFileStrategyFactory
- Returns:
- The created
FTPFileStrategy
.
-
-