zyh.robot
Interface ContentFilter

All Known Implementing Classes:
TextHTMLFilter

public interface ContentFilter

The interface that every content filter class must implement.

The zyh.robot framework allows for multiple content filters.

See Also:
ContentManager, Content

Method Summary
 java.lang.String[] getAcceptedContenttype()
          Return an String array which contains all supported content types
 Content getContent(java.io.InputStream in)
          Attempts to get a content from a given input stream.
 

Method Detail

getAcceptedContenttype

public java.lang.String[] getAcceptedContenttype()
Return an String array which contains all supported content types

getContent

public Content getContent(java.io.InputStream in)
                   throws java.io.IOException
Attempts to get a content from a given input stream.
Parameters:
InputStream - an input stream
Returns:
a Content from the input stream
Throws:
IOException - if an input stream access error occurs