APIdia Launch Partner
Top Fields Constructors Methods
com.sun.jndi.ldap.sasl

pack-priv Class SaslOutputStream

extends FilterOutputStream
Class Inheritance
Imports
javax.security.sasl.Sasl, .SaslClient, .SaslException, java.io.IOException, .FilterOutputStream, .OutputStream

Field Summary

Modifier and TypeField and Description
private boolean
private static final boolean
private final byte[]
private int
private final SaslClient
Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Closes this output stream and releases any system resources associated with the stream.

private void
private static void
intToNetworkByteOrder(int num, byte[] buf, int start, int count)

Encodes an integer into 4 bytes in network byte order in the buffer supplied.

public void
write(int b)

Overrides java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

public void
write(byte[] buffer, int offset, int total)

Overrides java.io.FilterOutputStream.write.

Override this method to "wrap" the outgoing buffer before writing it to the underlying output stream.

Inherited from java.io.FilterOutputStream:
flushwrite

Field Detail

closedback to summary
private boolean closed

Hides java.io.FilterOutputStream.closed.

debugback to summary
private static final boolean debug
lenBufback to summary
private final byte[] lenBuf
rawSendSizeback to summary
private int rawSendSize
scback to summary
private final SaslClient sc

Constructor Detail

SaslOutputStreamback to summary
pack-priv SaslOutputStream(SaslClient sc, OutputStream out) throws SaslException

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterOutputStream.close.

Closes this output stream and releases any system resources associated with the stream.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
ensureOpenback to summary
private void ensureOpen() throws IOException
intToNetworkByteOrderback to summary
private static void intToNetworkByteOrder(int num, byte[] buf, int start, int count)

Encodes an integer into 4 bytes in network byte order in the buffer supplied.

writeback to summary
public void write(int b) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

The write method of FilterOutputStream calls the write method of its underlying output stream, that is, it performs out.write(b).

Implements the abstract write method of OutputStream.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(byte[] buffer, int offset, int total) throws IOException

Overrides java.io.FilterOutputStream.write.

Override this method to "wrap" the outgoing buffer before writing it to the underlying output stream.

Annotations
@Override
Exceptions
IOException:

Doc from java.io.FilterOutputStream.write.

if an I/O error occurs.