|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.handlers.NullHandler
public class NullHandler
The simplest implementation: just do nothing, as the incoming input stream already is an indexable text stream.
Constructor Summary | |
---|---|
NullHandler()
Constructor for NullHandler. |
Method Summary | |
---|---|
protected java.lang.String |
getFieldsAsString(Content content)
|
void |
getInfo(Content content,
boolean overrideAttributes,
boolean createThumbnail)
Tries to read info from content's data |
java.io.Reader |
getTextReader(Content content)
Implement this method to return a reader that provides the text associated to the content |
boolean |
hasThumbnail()
Return true if the content has thumbnail |
void |
writeAttributes(Content content)
Tries to write attributes to content's data |
void |
writeText(java.io.InputStream is,
java.io.Writer out)
Writes all the text associated to the incoming input stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullHandler()
Method Detail |
---|
protected java.lang.String getFieldsAsString(Content content)
public java.io.Reader getTextReader(Content content) throws java.io.IOException
IContentTypeHandler
getTextReader
in interface IContentTypeHandler
content
- The content
java.io.IOException
- If there's an IO problempublic void writeText(java.io.InputStream is, java.io.Writer out) throws java.io.IOException
IContentTypeHandler
writeText
in interface IContentTypeHandler
java.io.IOException
public boolean hasThumbnail()
IContentTypeHandler
hasThumbnail
in interface IContentTypeHandler
public void writeAttributes(Content content)
IContentTypeHandler
writeAttributes
in interface IContentTypeHandler
public void getInfo(Content content, boolean overrideAttributes, boolean createThumbnail)
IContentTypeHandler
getInfo
in interface IContentTypeHandler
content
- The content to read attributes fromoverrideAttributes
- True to extract attributes from file and
override existent content attributescreateThumbnail
- True to create thumbnail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |