From b766f47ecf1c68004a5d3b2050f8853e041b157a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Oct 2010 03:42:27 +0200 Subject: [PATCH] Add javadoc comment. --- src/main/java/net/pterodactylus/sone/core/SoneDownloader.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 4d39568..b7871dd 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -114,6 +114,15 @@ public class SoneDownloader extends AbstractService { parseSone(sone, fetchResult); } + /** + * Parses a Sone from a fetch result. + * + * @param sone + * The sone to parse, or {@code null} if the Sone is yet unknown + * @param fetchResult + * The fetch result + * @return The parsed Sone, or {@code null} if the Sone could not be parsed + */ public Sone parseSone(Sone sone, FetchResult fetchResult) { logger.log(Level.FINEST, "Persing FetchResult (%d bytes, %s) for %s…", new Object[] { fetchResult.size(), fetchResult.getMimeType(), sone }); /* TODO - impose a size limit? */ -- 2.7.4