Back to project page Pyazing.
The source code is released under:
Apache License
If you think the Android project Pyazing listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.ichigotake.pyazing; //from w w w .jav a 2s . c o m import android.net.Uri; final class UploadMedia { private final Uri data; private final String mimeType; UploadMedia(Uri data, String mimeType) { this.data = data; this.mimeType = mimeType; } Uri getData() { return data; } String getMimeType() { return mimeType; } boolean isImage() { return mimeType.startsWith("image/"); } boolean isVideo() { return mimeType.startsWith("video/"); } boolean hasFilenameExtension() { return data.getLastPathSegment().contains("."); } }