gnu.inet.util
Class SaslOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by gnu.inet.util.SaslOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class SaslOutputStream
extends java.io.FilterOutputStream

A filter output stream that encodes data written to it using a SASL client.

Author:
Chris Burdess

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
SaslOutputStream(javax.security.sasl.SaslClient sasl, java.io.OutputStream out)
          Constructor.
 
Method Summary
 void write(byte[] bytes)
           
 void write(byte[] bytes, int off, int len)
          Block write.
 void write(int c)
          Character write.
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaslOutputStream

public SaslOutputStream(javax.security.sasl.SaslClient sasl,
                        java.io.OutputStream out)
Constructor.

Parameters:
sasl - the SASL client
out - the target output stream
Method Detail

write

public void write(int c)
           throws java.io.IOException
Character write.

Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(byte[] bytes)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

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

Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved