- 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
FieldsModifier and TypeFieldDescriptionstatic final intThe name of the file or path to the file. -
Constructor Summary
ConstructorsConstructorDescriptionReturns 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
toStringMethods 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:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-