org.mailster.mina
Interface IoFilterCodec

All Known Implementing Classes:
DigestMD5IntegrityIoFilterCodec, DigestMD5PrivacyIoFilterCodec

public interface IoFilterCodec

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

IoFilterCodec.java - This class is the codec used by the DataConsumer that consumes the data cumulated by the CumulativeIoFilter.

Version:
$Revision: 1.4 $, $Date: 2009/01/30 01:32:30 $
Author:
Edouard De Oliveira

Method Summary
 void unwrap(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.buffer.IoBuffer buf)
          Unwraps the data from the IoBuffer and writes it to the IoFilter.NextFilter filter.
 void wrap(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.write.WriteRequest writeRequest, org.apache.mina.core.buffer.IoBuffer buf)
          Wraps the data of the IoBuffer and writes it to the IoFilter.NextFilter filter.
 

Method Detail

unwrap

void unwrap(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter,
            org.apache.mina.core.buffer.IoBuffer buf)
            throws java.lang.Exception
Unwraps the data from the IoBuffer and writes it to the IoFilter.NextFilter filter.

Throws:
java.lang.Exception

wrap

void wrap(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter,
          org.apache.mina.core.write.WriteRequest writeRequest,
          org.apache.mina.core.buffer.IoBuffer buf)
          throws java.lang.Exception
Wraps the data of the IoBuffer and writes it to the IoFilter.NextFilter filter.

Throws:
java.lang.Exception