- Enclosing class:
- TdApi
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
Modifier and TypeFieldDescriptionstatic final int
File name or path to the file. -
Constructor Summary
ConstructorDescriptionRemoves potentially dangerous characters from the name of a file.CleanFileName
(DataInput input) Removes potentially dangerous characters from the name of a file.CleanFileName
(String fileName) Removes potentially dangerous characters from the name of a file. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
fileName
File name or path to the file. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
CleanFileName
public CleanFileName()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. ReturnsText
-
CleanFileName
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. ReturnsText
- Parameters:
fileName
- String File name or path to the file.
-
CleanFileName
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. ReturnsText
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-