Package org.drinkless.tdlib
Class TdApi.CleanFileName
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.CleanFileName
-
- Enclosing class:
- TdApi
public static class TdApi.CleanFileName extends TdApi.Function
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringfileNameFile name or path to the file.
-
Constructor Summary
Constructors Constructor Description CleanFileName()Default constructor for a function, which removes potentially dangerous characters from the name of a file.CleanFileName(String fileName)Creates a function, which removes potentially dangerous characters from the name of a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
fileName
public String fileName
File name or path to the file.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CleanFileName
public CleanFileName()
Default constructor for a function, which removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
CleanFileName
public CleanFileName(String fileName)
Creates a function, which removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously.Returns
Text- Parameters:
fileName- File name or path to the file.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-