Package com.day.cq.dam.commons.thumbnail
Class XapThumbnailsProcessor
- java.lang.Object
-
- com.day.cq.dam.commons.thumbnail.XapThumbnailsProcessor
-
- All Implemented Interfaces:
Processor
,FilterStateListener
public class XapThumbnailsProcessor extends java.lang.Object implements Processor, FilterStateListener
Process bytes, extract thumbnails found in <xap:Thumbnails> tags and add them to aContext
.
-
-
Constructor Summary
Constructors Constructor Description XapThumbnailsProcessor(Context context)
Create a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ended(Filter filter, java.io.OutputStream out)
Invoked when the filter detects the end of a section.void
process(byte[] buf, int off, int len)
Process a couple of bytes.java.io.OutputStream
started(Filter filter)
Invoked when the filter detects the start of a section it understands.
-
-
-
Constructor Detail
-
XapThumbnailsProcessor
public XapThumbnailsProcessor(Context context)
Create a new instance of this class.- Parameters:
context
- context
-
-
Method Detail
-
process
public final void process(byte[] buf, int off, int len) throws java.io.IOException
Process a couple of bytes.
-
started
public java.io.OutputStream started(Filter filter)
Invoked when the filter detects the start of a section it understands.- Specified by:
started
in interfaceFilterStateListener
- Parameters:
filter
- filter- Returns:
- output stream, if the listener wants to have the consecutive
bytes automatically written to some location or
null
-
ended
public void ended(Filter filter, java.io.OutputStream out)
Invoked when the filter detects the end of a section.- Specified by:
ended
in interfaceFilterStateListener
- Parameters:
filter
- filterout
- output stream returned fromFilterStateListener.started(Filter)
ornull
-
-