Java Doc for OutputHandler.java in  » RSS-RDF » curn » org » clapper » curn » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » curn » org.clapper.curn 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.clapper.curn.OutputHandler

All known Subclasses:   org.clapper.curn.output.FileOutputHandler,  org.clapper.curn.ReadOnlyOutputHandler,
OutputHandler
public interface OutputHandler (Code)
This interface defines the methods that must be supported by a class that is to be plugged into curn as an output handler. It is responsible for writing any channel headers, item headers, and item information. It will only be called with items that should be displayed; any channel items that are cached and should be skipped are not handed to the output handler. curn models output in this manner to make it simpler to substitute different kinds of output handlers.
See Also:   Curn
See Also:   OutputHandlerFactory
See Also:   org.clapper.curn.parser.RSSChannel
See Also:   org.clapper.curn.parser.RSSItem
version:
   $Revision: 7041 $




Method Summary
public  voiddisplayChannel(RSSChannel channel, FeedInfo feedInfo)
     Display the list of RSSItem news items to whatever output is defined for the underlying class.
public  voidflush()
     Flush any buffered-up output and close the underlying output stream(s), if any.
public  StringgetContentType()
     Get the content (i.e., MIME) type for output produced by this output handler.
public  FilegetGeneratedOutput()
     Get the File that represents the output produced by the handler, if applicable.
public  StringgetName()
     Get the name of this output handler.
public  StringgetOutputEncoding()
     Get the output encoding.
public  booleanhasGeneratedOutput()
     Determine whether this handler has produced any actual output (i.e., whether OutputHandler.getGeneratedOutput() will return a non-null InputStream if called).
public  voidinit(CurnConfig config, ConfiguredOutputHandler cfgHandler)
     Initializes the output handler for another set of RSS channels.
Parameters:
  config - the parsed curn configuration data.
public  OutputHandlermakeCopy()
     Make a copy of the output handler.
public  voidsetName(String name)
     Set the name of this output handler.



Method Detail
displayChannel
public void displayChannel(RSSChannel channel, FeedInfo feedInfo) throws CurnException(Code)
Display the list of RSSItem news items to whatever output is defined for the underlying class. Output should be written to the PrintWriter that was passed to the OutputHandler.init init() method.
Parameters:
  channel - The parsed channel data. curn will pass acopy of the actual RSSChannel object, so theoutput handler can edit its contents, if necessary,without affecting other output handlers.
Parameters:
  feedInfo - The feed.
throws:
  CurnException - unable to write output



flush
public void flush() throws CurnException(Code)
Flush any buffered-up output and close the underlying output stream(s), if any. curn calls this method once, after calling displayChannelItems() for all channels. If the output handler doesn't need to flush any output, it can simply return without doing anything.
throws:
  CurnException - unable to write output



getContentType
public String getContentType()(Code)
Get the content (i.e., MIME) type for output produced by this output handler. the content type
See Also:   OutputHandler.hasGeneratedOutput
See Also:   OutputHandler.getGeneratedOutput



getGeneratedOutput
public File getGeneratedOutput() throws CurnException(Code)
Get the File that represents the output produced by the handler, if applicable. (Use of a File, rather than an InputStream, is more efficient when mailing the output, since the email API ultimately wants files and will create temporary files for InputStreams.) the output file, or null if no suitable output was produced
throws:
  CurnException - an error occurred



getName
public String getName()(Code)
Get the name of this output handler. The name must be unique. the name



getOutputEncoding
public String getOutputEncoding()(Code)
Get the output encoding. the encoding



hasGeneratedOutput
public boolean hasGeneratedOutput()(Code)
Determine whether this handler has produced any actual output (i.e., whether OutputHandler.getGeneratedOutput() will return a non-null InputStream if called). true if the handler has produced output,false if not
See Also:   OutputHandler.getGeneratedOutput
See Also:   OutputHandler.getContentType



init
public void init(CurnConfig config, ConfiguredOutputHandler cfgHandler) throws ConfigurationException, CurnException(Code)
Initializes the output handler for another set of RSS channels.
Parameters:
  config - the parsed curn configuration data. Theoutput handler is responsible for retrieving itsown parameters from the configuration, by callingconfig.getOutputHandlerSpecificVariables()
Parameters:
  cfgHandler - the ConfiguredOutputHandler wrappercontaining this object; the wrapper has some usefulmetadata, such as the object's configuration sectionname and extra variables.
throws:
  ConfigurationException - configuration error
throws:
  CurnException - some other initialization error
See Also:   CurnConfig
See Also:   ConfiguredOutputHandler



makeCopy
public OutputHandler makeCopy() throws CurnException(Code)
Make a copy of the output handler. a clean, initialized copy of the output handler
throws:
  CurnException - on error



setName
public void setName(String name) throws CurnException(Code)
Set the name of this output handler. Called by curn.
Parameters:
  name - the name
throws:
  CurnException - on error



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.