- Enclosing class:
- TdApi
Returns the MIME type of a file,
guessed by its extension. Returns an
empty string on failure. Can be called synchronously.
Returns
Text
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The name of the file or path to the file. -
Constructor Summary
ConstructorDescriptionReturns the MIME type of a file, guessed by its extension.GetFileMimeType
(DataInput input) Returns the MIME type of a file, guessed by its extension.GetFileMimeType
(String fileName) Returns the MIME type of a file, guessed by its extension. -
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
The name of the file or path to the file. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
GetFileMimeType
public GetFileMimeType()Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. ReturnsText
-
GetFileMimeType
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. ReturnsText
- Parameters:
fileName
- String The name of the file or path to the file.
-
GetFileMimeType
Returns the MIME type of a file, guessed by its extension. 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()
-