Return the content type of the found data.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 7 Sep 2010 10:04:45 +0000 (12:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 7 Sep 2010 10:04:45 +0000 (12:04 +0200)
pom.xml
src/main/java/net/pterodactylus/fcp/AllData.java

diff --git a/pom.xml b/pom.xml
index a698719..89b68a5 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
        <modelVersion>4.0.0</modelVersion>
        <groupId>net.pterodactylus</groupId>
        <artifactId>jFCPlib</artifactId>
-       <version>0.1.2.3</version>
+       <version>0.1.2.4-SNAPSHOT</version>
        <name>jFCPlib</name>
        <packaging>jar</packaging>
        <distributionManagement>
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");
+       }
+
 }