gnu.inet.util
Class SaslInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by gnu.inet.util.SaslInputStream
All Implemented Interfaces:
java.io.Closeable

public class SaslInputStream
extends java.io.FilterInputStream

A filter input stream that decodes all its received input using a SASL client.

Author:
Chris Burdess

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
SaslInputStream(javax.security.sasl.SaslClient sasl, java.io.InputStream in)
          Constructor.
 
Method Summary
 int read()
          Reads a single character.
 int read(byte[] bytes)
           
 int read(byte[] bytes, int off, int len)
          Block read.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaslInputStream

public SaslInputStream(javax.security.sasl.SaslClient sasl,
                       java.io.InputStream in)
Constructor.

Parameters:
sasl - the SASL client
in - the underlying input stream
Method Detail

read

public int read()
         throws java.io.IOException
Reads a single character.

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes,
                int off,
                int len)
         throws java.io.IOException
Block read.

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved