APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.ssl

pack-priv final Class SSLSocketOutputRecord

extends OutputRecord
implements SSLRecord
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLRecord, sun.security.ssl.Record
Imports
java.io.ByteArrayInputStream, .IOException, .OutputStream, java.net.SocketException, java.nio.ByteBuffer, javax.net.ssl.SSLHandshakeException

OutputRecord implementation for SSLSocket.

Field Summary

Modifier and TypeField and Description
private OutputStream
Inherited from sun.security.ssl.OutputRecord:
firstMessagehandshakeHashhelloVersionisClosedisFirstAppOutputRecordpacketSizeprotocolVersionrecordLocktcwriteCipher

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
deliver(byte[] source, int offset, int length)

Overrides sun.security.ssl.OutputRecord.deliver.

pack-priv void
pack-priv void
encodeAlert(byte level, byte description)

Implements abstract sun.security.ssl.OutputRecord.encodeAlert.

pack-priv void
pack-priv void
encodeHandshake(byte[] source, int offset, int length)

Implements abstract sun.security.ssl.OutputRecord.encodeHandshake.

public void
flush()

Overrides java.io.OutputStream.flush.

Implements java.io.Flushable.flush.

Flushes this output stream and forces any buffered output bytes to be written out.

private int
private boolean
pack-priv void
Inherited from sun.security.ssl.OutputRecord:
calculateFragmentSizechangeFragmentSizechangePacketSizechangeWriteCipherschangeWriteCipherscloseencodeencodeV2ClientHelloencodeV2NoCipherencryptencryptfinishHandshakegetHandshakeMessagegetHandshakeMessageKeySpacegetMaxPacketSizeinitHandshakerisClosedisEmptylaunchRetransmissionseqNumIsHugesetHelloVersionsetVersion

Field Detail

deliverStreamback to summary
private OutputStream deliverStream

Constructor Detail

SSLSocketOutputRecordback to summary
pack-priv SSLSocketOutputRecord(HandshakeHash handshakeHash)
SSLSocketOutputRecordback to summary
pack-priv SSLSocketOutputRecord(HandshakeHash handshakeHash, TransportContext tc)

Method Detail

deliverback to summary
pack-priv void deliver(byte[] source, int offset, int length) throws IOException

Overrides sun.security.ssl.OutputRecord.deliver.

Annotations
@Override
disposeWriteCipherback to summary
pack-priv void disposeWriteCipher()

Overrides sun.security.ssl.OutputRecord.disposeWriteCipher.

Annotations
@Override
encodeAlertback to summary
pack-priv void encodeAlert(byte level, byte description) throws IOException

Implements abstract sun.security.ssl.OutputRecord.encodeAlert.

Annotations
@Override
encodeChangeCipherSpecback to summary
pack-priv void encodeChangeCipherSpec() throws IOException

Implements abstract sun.security.ssl.OutputRecord.encodeChangeCipherSpec.

Annotations
@Override
encodeHandshakeback to summary
pack-priv void encodeHandshake(byte[] source, int offset, int length) throws IOException

Implements abstract sun.security.ssl.OutputRecord.encodeHandshake.

Annotations
@Override
flushback to summary
public void flush() throws IOException

Overrides java.io.OutputStream.flush.

Implements java.io.Flushable.flush.

Doc from java.io.OutputStream.flush.

Flushes this output stream and forces any buffered output bytes to be written out. The general contract of flush is that calling it is an indication that, if any bytes previously written have been buffered by the implementation of the output stream, such bytes should immediately be written to their intended destination.

If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
getFragLimitback to summary
private int getFragLimit()
needToSplitPayloadback to summary
private boolean needToSplitPayload()
setDeliverStreamback to summary
pack-priv void setDeliverStream(OutputStream outputStream)

Overrides sun.security.ssl.OutputRecord.setDeliverStream.

Annotations
@Override