gnu.inet.util

Class SaslInputStream


public class SaslInputStream
extends FilterInputStream

A filter input stream that decodes all its received input using a SASL client.
Author:
Chris Burdess

Constructor Summary

SaslInputStream(SaslClient sasl, 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.

Constructor Details

SaslInputStream

public SaslInputStream(SaslClient sasl,
                       InputStream in)
Constructor.
Parameters:
sasl - the SASL client
in - the underlying input stream

Method Details

read

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

read

public int read(byte[] bytes)
            throws IOException

read

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

© Copyright 2003 The Free Software Foundation, all rights reserved