Return the content type of the found data.
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / AllData.java
index ef427b1..b997ab4 100644 (file)
@@ -99,4 +99,13 @@ public class AllData extends BaseMessage implements Identifiable {
                return payloadInputStream;
        }
 
+       /**
+        * Returns the content type of the found file.
+        *
+        * @return The content type
+        */
+       public String getContentType() {
+               return getField("Metadata.ContentType");
+       }
+
 }