de.smartics.tagcloud.collector
Class TokenizerTagCollector

Package class diagram package TokenizerTagCollector
java.lang.Object
  extended by de.smartics.tagcloud.collector.TokenizerTagCollector
All Implemented Interfaces:
TagCollector

public final class TokenizerTagCollector
     
     
extends Object
implements TagCollector

Collects words by using a tokenizer.

Author:
Robert Reiner

Constructor Summary
TokenizerTagCollector(String encoding, TagCloud tagCloud)
          Default constructor.
 
Method Summary
 void clear()
          Removes all tag information collected.
 void collect(InputStream input)
          Collects words from the input stream.
 TagCloud getTagCloud()
          Returns a reference to the cloud.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenizerTagCollector

public TokenizerTagCollector(String encoding,
                             TagCloud tagCloud)
Default constructor.

Method Detail

collect

public void collect(InputStream input)
             throws IOException
Collects words from the input stream. The words are added as tags to the tag cloud.

Specified by:
collect in interface TagCollector
Throws:
IOException
See Also:
TagCollector.collect(java.io.InputStream)

getTagCloud

public TagCloud getTagCloud()
Returns a reference to the cloud.

Specified by:
getTagCloud in interface TagCollector
Returns:
a reference to the cloud.
See Also:
TagCollector.getTagCloud()

clear

public void clear()
Removes all tag information collected.

Specified by:
clear in interface TagCollector
See Also:
TagCollector.clear()


Copyright © 2011-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.