Package it.tdlight.jni
Class TdApi.GetFileExtension
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.GetFileExtension
- Enclosing class:
- TdApi
public static class TdApi.GetFileExtension extends TdApi.Function
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
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
mimeType
The MIME type of the file. -
Constructor Summary
Constructors Constructor Description GetFileExtension()
Returns the extension of a file, guessed by its MIME type.GetFileExtension(DataInput input)
GetFileExtension(String mimeType)
Returns the extension of a file, guessed by its MIME type. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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:
- Constant Field Values
-
-
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.Returns
Text
-
GetFileExtension
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.Returns
Text
- Parameters:
mimeType
- String The MIME type of the file.
-
GetFileExtension
- 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()
-