public class SaslInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
myByteBuffer |
private javax.security.sasl.SaslClient |
myClient |
private byte[] |
myReadBuffer |
private java.io.InputStream |
mySource |
Constructor and Description |
---|
SaslInputStream(javax.security.sasl.SaslClient client,
int bufferSize,
java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private void |
fetchDecodedBuffer() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
private java.io.InputStream mySource
private javax.security.sasl.SaslClient myClient
private byte[] myReadBuffer
private java.nio.ByteBuffer myByteBuffer
public SaslInputStream(javax.security.sasl.SaslClient client, int bufferSize, java.io.InputStream in)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
private void fetchDecodedBuffer() throws java.io.IOException
java.io.IOException