From 32cccbb67e8172128074430375ccb8fed6fe5555 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 7 Sep 2010 12:04:45 +0200 Subject: [PATCH] Return the content type of the found data. --- pom.xml | 2 +- src/main/java/net/pterodactylus/fcp/AllData.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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"); + } + } -- 2.7.4