gnu.inet.util
Class SaslInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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.
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 |
SaslInputStream
public SaslInputStream(javax.security.sasl.SaslClient sasl,
java.io.InputStream in)
- Constructor.
- Parameters:
sasl
- the SASL clientin
- the underlying input stream
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