org.apache.directory.mitosis.operation
Class OperationCodec

java.lang.Object
  extended by org.apache.directory.mitosis.operation.OperationCodec

public class OperationCodec
extends java.lang.Object

Encodes Operations to byte[] and vice versa so an Operation can be transferred via TCP/IP communication.

Author:
Apache Directory Project

Constructor Summary
OperationCodec()
           
 
Method Summary
 Operation decode(Registries registries, byte[] data)
          Transforms the specified byte array into an Operation.
 byte[] encode(Operation op)
          Transforms the specified Operation into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationCodec

public OperationCodec()
Method Detail

encode

public byte[] encode(Operation op)
Transforms the specified Operation into a byte array.


decode

public Operation decode(Registries registries,
                        byte[] data)
Transforms the specified byte array into an Operation.



Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.