public class FactoryCollector extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_IMAGE
For image url collector.
|
static int |
TYPE_LINK
For link collector.
|
static int |
TYPE_TEXT
For text collector.
|
| Constructor and Description |
|---|
FactoryCollector() |
| Modifier and Type | Method and Description |
|---|---|
static Collector |
getCollector(int collectorType,
String source)
It retrieves the collector object by collector type ID and the source.
|
public static final int TYPE_LINK
public static final int TYPE_TEXT
public static final int TYPE_IMAGE
public static Collector getCollector(int collectorType, String source)
collectorType - It is given by constants of the FactoryCollector.source - The source code.Copyright © 2015. All rights reserved.