fable.io
Class CustomName

java.lang.Object
  extended by fable.io.CustomName

public class CustomName
extends java.lang.Object

This class returns the path of a new custom feed (in the form of an URL) or the path of a new article or summary

Author:
Christopher Moh

Method Summary
static void deleteAllSummaries()
          Deletes all article summaries
static java.lang.String getNewArticleName()
          Returns the file name of the next article to store
static java.net.URL getNewCustomFeedURL(java.lang.String title)
          Checks and returns a URL for a custom feed
static java.lang.String getNewSummaryName()
          Returns the file name of the next summary to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNewCustomFeedURL

public static java.net.URL getNewCustomFeedURL(java.lang.String title)
Checks and returns a URL for a custom feed

Parameters:
title - Title of the custom feed
Returns:
The URL that this feed should be assigned to, or null if the Feed can't be created
Requires:
title != null

getNewArticleName

public static java.lang.String getNewArticleName()
Returns the file name of the next article to store

Returns:
file name of next article to store

getNewSummaryName

public static java.lang.String getNewSummaryName()
Returns the file name of the next summary to use

Returns:
File name of next Summary to use

deleteAllSummaries

public static void deleteAllSummaries()
Deletes all article summaries