- Enclosing class:
- TdApi
Returns the extension of a file,
guessed by its MIME type. Returns an
empty string on failure. Can be called synchronously.
Returns
Text
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The MIME type of the file. -
Constructor Summary
ConstructorDescriptionReturns the extension of a file, guessed by its MIME type.GetFileExtension
(DataInput input) Returns the extension of a file, guessed by its MIME type.GetFileExtension
(String mimeType) Returns the extension of a file, guessed by its MIME type. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
mimeType
The MIME type of the file. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
GetFileExtension
public GetFileExtension()Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously. ReturnsText
-
GetFileExtension
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously. ReturnsText
- Parameters:
mimeType
- String The MIME type of the file.
-
GetFileExtension
Returns the extension of a file, guessed by its MIME type. 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()
-