APIdia Launch Partner
Top Fields Constructors Methods
sun.security.krb5.internal

pack-priv Class TCPClient

Located in compilation unit of sun.security.krb5.internal.NetClient.

extends NetClient
Class Inheritance

Field Summary

Modifier and TypeField and Description
private BufferedInputStream
private BufferedOutputStream
private Socket

Constructor Summary

AccessConstructor and Description
pack-priv
TCPClient(String hostname, int port, int timeout)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements abstract sun.security.krb5.internal.NetClient.close.

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

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.

private static int
networkByteOrderToInt(byte[] buf, int start, int count)

Returns the integer represented by 4 bytes in network byte order.

private int

Returns:

The number of bytes actually read; -1 if none read
readFully
(byte[] inBuf, int total)

Read requested number of bytes before returning.

public byte[]
public void
send(byte[] data)

Implements abstract sun.security.krb5.internal.NetClient.send.

Inherited from sun.security.krb5.internal.NetClient:
getInstance

Field Detail

inback to summary
private BufferedInputStream in
outback to summary
private BufferedOutputStream out
tcpSocketback to summary
private Socket tcpSocket

Constructor Detail

TCPClientback to summary
pack-priv TCPClient(String hostname, int port, int timeout) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Implements abstract sun.security.krb5.internal.NetClient.close.

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
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.

networkByteOrderToIntback to summary
private static int networkByteOrderToInt(byte[] buf, int start, int count)

Returns the integer represented by 4 bytes in network byte order.

readFullyback to summary
private int readFully(byte[] inBuf, int total) throws IOException

Read requested number of bytes before returning.

Returns:int

The number of bytes actually read; -1 if none read

receiveback to summary
public byte[] receive() throws IOException

Implements abstract sun.security.krb5.internal.NetClient.receive.

Annotations
@Override
sendback to summary
public void send(byte[] data) throws IOException

Implements abstract sun.security.krb5.internal.NetClient.send.

Annotations
@Override