Package com.day.cq.dam.commons.handler
Class XPacketFilter
- java.lang.Object
-
- com.day.cq.dam.commons.handler.AbstractFilter
-
- com.day.cq.dam.commons.handler.XPacketFilter
-
- All Implemented Interfaces:
Filter
public class XPacketFilter extends AbstractFilter
Continuously process bytes received from anInputStream
and write the ones contained in an xpacket to anOutputStream
.
-
-
Constructor Summary
Constructors Constructor Description XPacketFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid()
Return a flag indicating whether the contents processed by this filter represents a valid entity.-
Methods inherited from class com.day.cq.dam.commons.handler.AbstractFilter
filter, reset, setAutoReset, setFilterStateListener
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
Return a flag indicating whether the contents processed by this filter represents a valid entity. This implementation returnstrue
. Contents is only valid if the state equalsXPacketFilter.ParseState.END
.- Specified by:
isValid
in interfaceFilter
- Overrides:
isValid
in classAbstractFilter
- Returns:
true
if the contents is valid;false
otherwise.
-
-