Package org.drinkless.tdlib
Class TdApi.CleanFileName
- Enclosing class:
- TdApi
Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously.
Returns Text
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.File name or path to the file. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
fileName
File name or path to the file. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CleanFileName
public CleanFileName()Default constructor for a function, which removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously.Returns
Text -
CleanFileName
Creates a function, which removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously.Returns
Text- Parameters:
fileName- File name or path to the file.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-