org.neuclear.commons.crypto.channels
Class CipherChannel

java.lang.Object
  extended by org.neuclear.commons.crypto.channels.AbstractCryptoChannel
      extended by org.neuclear.commons.crypto.channels.CipherChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, java.nio.channels.WritableByteChannel

public class CipherChannel
extends AbstractCryptoChannel

Created by IntelliJ IDEA. User: pelleb Date: Mar 8, 2004 Time: 10:06:40 AM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from class org.neuclear.commons.crypto.channels.AbstractCryptoChannel
closed
 
Constructor Summary
CipherChannel(javax.crypto.Cipher cipher)
           
 
Method Summary
 void close()
           
 int write(java.nio.ByteBuffer buffer)
           
 
Methods inherited from class org.neuclear.commons.crypto.channels.AbstractCryptoChannel
isOpen, pipe, pipe, source, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherChannel

public CipherChannel(javax.crypto.Cipher cipher)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public int write(java.nio.ByteBuffer buffer)
          throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Overrides:
close in class AbstractCryptoChannel
Throws:
java.io.IOException


Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.