Class TransferFileUtil
java.lang.Object
com.amilesend.client.connection.file.TransferFileUtil
Shared utility class used by transfer logic.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringfetchMimeTypeFromFile(@NonNull File file) Fetches the mime type for the givenfile.static StringfetchMimeTypeFromFile(@NonNull Path filePath) Fetches the mime type for the givenfilePath.
- 
Method Details- 
fetchMimeTypeFromFileFetches the mime type for the givenfilePath. This is used to specify the content-type for requests and replies.- Parameters:
- filePath- the file
- Returns:
- the string formatted mime type
- Throws:
- IOException- if an error occurred while reading the file
 
- 
fetchMimeTypeFromFileFetches the mime type for the givenfile. This is used to specify the content-type for requests and replies.- Parameters:
- file- the file
- Returns:
- the string formatted mime type
- Throws:
- IOException- if an error occurred while reading the file
 
 
-