|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.phleisch.app.itsucks.processing.impl.AbstractDataProcessor
de.phleisch.app.itsucks.processing.impl.AbstractDataParser
de.phleisch.app.itsucks.processing.download.http.impl.HtmlParser
public class HtmlParser
| Field Summary |
|---|
| Fields inherited from class de.phleisch.app.itsucks.processing.impl.AbstractDataProcessor |
|---|
mChain |
| Constructor Summary | |
|---|---|
HtmlParser()
|
|
| Method Summary | |
|---|---|
boolean |
canResume()
Supports this data processor resuming? |
java.net.URI[] |
extractURLs(java.lang.CharSequence pData)
|
void |
finish()
Shutdown the data processor. |
void |
init()
Initializes the data processor. |
boolean |
isConsumer()
'Consumes' (saves, parses etc.) this processor to the data or is it only an filter? |
protected java.util.regex.Pattern[] |
loadPatterns(java.lang.String propertyName)
|
boolean |
needsDataAsWholeChunk()
Asks the processor if it needs the data from the data retriever in one chunk and not in multiple pieces. |
DataChunk |
process(DataChunk pDataChunk)
Processes the given data chunk. |
void |
resumeAt(long pByteOffset)
Resumes the processing at the given position. |
void |
setApplicationContext(org.springframework.context.ApplicationContext pContext)
|
boolean |
supports(Job pJob)
Returns true if this processor supports the given type of job. |
| Methods inherited from class de.phleisch.app.itsucks.processing.impl.AbstractDataProcessor |
|---|
abort, getProcessorChain, rollback, setProcessorChain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.phleisch.app.itsucks.processing.DataProcessor |
|---|
abort, rollback, setProcessorChain |
| Constructor Detail |
|---|
public HtmlParser()
| Method Detail |
|---|
public boolean supports(Job pJob)
DataProcessor
supports in interface DataProcessorsupports in class AbstractDataProcessor
public void init()
throws ProcessingException
DataProcessor
init in interface DataProcessorinit in class AbstractDataProcessorProcessingExceptionpublic void finish()
DataProcessor
finish in interface DataProcessorfinish in class AbstractDataProcessorpublic DataChunk process(DataChunk pDataChunk)
DataProcessor
process in interface DataProcessorprotected java.util.regex.Pattern[] loadPatterns(java.lang.String propertyName)
public java.net.URI[] extractURLs(java.lang.CharSequence pData)
public void setApplicationContext(org.springframework.context.ApplicationContext pContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic boolean needsDataAsWholeChunk()
DataProcessor
needsDataAsWholeChunk in interface DataProcessorpublic boolean isConsumer()
DataProcessor
isConsumer in interface DataProcessorpublic boolean canResume()
DataProcessor
canResume in interface DataProcessorpublic void resumeAt(long pByteOffset)
DataProcessor
resumeAt in interface DataProcessorpByteOffset - The offset position in bytes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||