net.rim.device.api.io.messaging
Interface ChainableMessageProcessor

All Superinterfaces:
MessageProcessor
All Known Implementing Classes:
GUNZIPMessageProcessor

public interface ChainableMessageProcessor
extends MessageProcessor

Defines the basic behavior that a MessageProcessor should implement to process an InputStream. This approach is preferable when processing large messages because the entire message body does not have to be held in memory at once.

Since:
BlackBerry API 6.0.0

Method Summary
 InputStream chain(InputStream stream)
          Returns a new InputStream to process data found in the stream parameter.
 
Methods inherited from interface net.rim.device.api.io.messaging.MessageProcessor
process
 



Method Detail

chain

InputStream chain(InputStream stream)
Returns a new InputStream to process data found in the stream parameter.

Parameters:
stream - Data stream to read.
Returns:
InputStream containing data after it has been processed.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.