org.neuclear.commons.crypto.channels
Class AbstractEncodingChannel

java.lang.Object
  extended by org.neuclear.commons.crypto.channels.AbstractCryptoChannel
      extended by org.neuclear.commons.crypto.channels.AbstractEncodingChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, java.nio.channels.WritableByteChannel
Direct Known Subclasses:
Base32EncodingChannel

public abstract class AbstractEncodingChannel
extends AbstractCryptoChannel

This is an AbstractChannel for encodings such as base64 etc. You write raw data to it and read the encoded data with read(). TODO This should probably be blocking.


Field Summary
 
Fields inherited from class org.neuclear.commons.crypto.channels.AbstractCryptoChannel
closed
 
Constructor Summary
protected AbstractEncodingChannel()
           
 
Method Summary
(package private) abstract  int encode(java.nio.ByteBuffer buffer)
           
 int write(java.nio.ByteBuffer buffer)
           
 
Methods inherited from class org.neuclear.commons.crypto.channels.AbstractCryptoChannel
close, 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

AbstractEncodingChannel

protected AbstractEncodingChannel()
                           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

encode

abstract int encode(java.nio.ByteBuffer buffer)
             throws java.io.IOException
Throws:
java.io.IOException


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