org.apache.ws.commons.tcpmon.core.filter
Class ReadOnlyEntityProcessorWrapper
java.lang.Object
org.apache.ws.commons.tcpmon.core.filter.ReadOnlyEntityProcessorWrapper
- All Implemented Interfaces:
- EntityProcessor
public class ReadOnlyEntityProcessorWrapper
- extends Object
- implements EntityProcessor
Wrapper that makes an EntityProcessor
read-only.
Method Summary |
boolean |
process(Stream stream)
Process data from the stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyEntityProcessorWrapper
public ReadOnlyEntityProcessorWrapper(EntityProcessor parent)
process
public boolean process(Stream stream)
- Description copied from interface:
EntityProcessor
- Process data from the stream.
The contract of this method is the same as for
StreamFilter.invoke(Stream)
,
except for the return value.
- Specified by:
process
in interface EntityProcessor
- Parameters:
stream
- the stream containing the entity to process
- Returns:
true
if the end of the entity has been
reached. In this case, the implementation must set
the current position in the stream to the position
just after the last byte being part of the entity.
false
otherwise
Copyright © The Apache Software Foundation. All Rights Reserved.