| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Generates a set of news data given a updated set of files.
Generates:
| Inner Class Summary | |
(package private) class | SiteNews.HTMLParserCallBack |
| Field Summary | |
private List | added |
private final String | DEFAULT_DTD |
private final static String | DEFAULT_PROPERTIES_FILENAME |
private static String | directoryArgument |
private ResourceBundle | documentsBundle |
private Locale | documentsLocale |
private String | feedFilename |
private Map | fileDescriptions |
private File | filesDirectory |
private Map | fileTitles |
private static String | htmlFilenameArgument |
private DocumentParser | htmlParser |
private static Locale | localeArgument |
(package private) final String | newsTag |
private Properties | properties |
private File | propertiesFile |
private static String | propertiesFilenameArgument |
private static String | rssFilenameArgument |
private static ResourceBundle | toolBundle |
private List | updated |
private boolean | verbose |
private static boolean | verboseArgument |
private String | webFilename |
| Constructor Summary | |
SiteNews(String propertiesFile, String htmlFilename, String rssFilename, boolean verbose, Locale locale, String directory) | |
| Method Summary | |
private void | analyze(File[] directoryFiles) |
private String | documentMessage(String messageKey) |
private void | generate() |
private Channel | generateFeed() |
private String | getDescription(File file) |
private String | getTitle(File file)Read informations about a file. |
static void | main(String[] args) |
private static void | parseArguments(String[] args) |
private void | processFeed(List toProcess, Channel channel, String prefix) |
private void | processWeb(List toProcess, StringBuffer webBuffer, String description) |
private void | readProperties(String propertiesFilename, String directory) |
private List | readWeb() |
private static String | toolMessage(String messageKey) |
private static String | toolMessage(String messageKey, Object messageParam) |
private static String | toolMessage(String messageKey, Object messageParam0, Object messageParam1) |
private String | toolMessage(String messageKey, Object messageParam0, Object messageParam1, Object messageParam2) |
private void | updateProperties(File[] directoryFiles) |
private void | writeFeed(Channel feed) |
private static void | writeInfo(String messageKey, Object messageParam) |
private void | writeVerbose(String messageKey, String messageParam) |
private void | writeVerbose(String messageKey, String messageParam0, String messageParam1) |
private void | writeVerbose(String messageKey, Object messageParam0, Object messageParam1, Object messageParam2) |
private void | writeWeb(List lines) |
| Field Detail |
private List added
private final String DEFAULT_DTD
private final static String DEFAULT_PROPERTIES_FILENAME
private static String directoryArgument
private ResourceBundle documentsBundle
private Locale documentsLocale
private String feedFilename
private Map fileDescriptions
private File filesDirectory
private Map fileTitles
private static String htmlFilenameArgument
private DocumentParser htmlParser
private static Locale localeArgument
final String newsTag
private Properties properties
private File propertiesFile
private static String propertiesFilenameArgument
private static String rssFilenameArgument
private static ResourceBundle toolBundle
private List updated
private boolean verbose
private static boolean verboseArgument
private String webFilename
| Constructor Detail |
public SiteNews(String propertiesFile, String htmlFilename, String rssFilename, boolean verbose, Locale locale, String directory)
throws java.io.IOException
| Method Detail |
private void analyze(File[] directoryFiles)
private String documentMessage(String messageKey)
private void generate()
throws java.io.IOException
private Channel generateFeed()
throws java.io.IOException
private String getDescription(File file)
private String getTitle(File file)
throws java.io.IOException
<title>and
<meta>data.
public static void main(String[] args)
throws java.io.IOException,
ParseException
private static void parseArguments(String[] args)
throws ParseException
private void processFeed(List toProcess, Channel channel, String prefix)
throws java.io.IOException
private void processWeb(List toProcess, StringBuffer webBuffer, String description)
throws java.io.IOException
private void readProperties(String propertiesFilename, String directory)
private List readWeb()
throws java.io.IOException
private static String toolMessage(String messageKey)
private static String toolMessage(String messageKey, Object messageParam)
private static String toolMessage(String messageKey, Object messageParam0, Object messageParam1)
private String toolMessage(String messageKey, Object messageParam0, Object messageParam1, Object messageParam2)
private void updateProperties(File[] directoryFiles)
throws java.io.IOException
private void writeFeed(Channel feed)
throws java.io.IOException
private static void writeInfo(String messageKey, Object messageParam)
private void writeVerbose(String messageKey, String messageParam)
private void writeVerbose(String messageKey, String messageParam0, String messageParam1)
private void writeVerbose(String messageKey, Object messageParam0, Object messageParam1, Object messageParam2)
private void writeWeb(List lines)
throws java.io.IOException
| Association Links |
to Class java.lang.String
to Class java.util.Properties
to Class java.util.List
to Class java.util.List
to Class java.io.File
to Class java.lang.String
to Class java.util.Locale
to Class java.lang.String
to Class javax.swing.text.html.parser.DocumentParser
to Class java.lang.String
to Class java.util.Map
to Class java.util.Map
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.util.Locale
to Class java.util.ResourceBundle
to Class java.util.ResourceBundle
to Class java.io.File
to Class java.lang.String
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||