From: David ‘Bombe’ Roden Date: Tue, 7 Sep 2010 10:04:45 +0000 (+0200) Subject: Return the content type of the found data. X-Git-Tag: v0.1.3^2~19 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=32cccbb67e8172128074430375ccb8fed6fe5555;p=jFCPlib.git Return the content type of the found data. --- diff --git a/pom.xml b/pom.xml index a698719..89b68a5 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 net.pterodactylus jFCPlib - 0.1.2.3 + 0.1.2.4-SNAPSHOT jFCPlib jar diff --git a/src/main/java/net/pterodactylus/fcp/AllData.java b/src/main/java/net/pterodactylus/fcp/AllData.java index ef427b1..b997ab4 100644 --- a/src/main/java/net/pterodactylus/fcp/AllData.java +++ b/src/main/java/net/pterodactylus/fcp/AllData.java @@ -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"); + } + }