Home | | Object Oriented Programming | | The Complete Reference Java | | Internet Programming | | Web Programming | The Networking Classes and Interfaces - Java

Chapter: Java The Complete Reference - The Java Library - Networking

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

The Networking Classes and Interfaces - Java

Java supports TCP/IP both by extending the already established stream I/O interface introduced in Chapter 20 and by adding the features required to build I/O objects across the network. Java supports both the TCP and UDP protocol families.

The Networking Classes and Interfaces

 

Java supports TCP/IP both by extending the already established stream I/O interface introduced in Chapter 20 and by adding the features required to build I/O objects across the network. Java supports both the TCP and UDP protocol families. TCP is used for reliable stream-based I/O across the network. UDP supports a simpler, hence faster, point-to-point datagram-oriented model. The classes contained in the java.net package are shown here:



Authenticator

 

CacheRequest

 

CacheResponse

 

ContentHandler

 

CookieHandler

 

CookieManager

 

DatagramPacket

 

DatagramSocket

 

DatagramSocketImpl

 

HttpCookie

 

HttpURLConnection

 

IDN

 

Inet4Address

 

Inet6Address

 

InetAddress

 

InetSocketAddress

 

InterfaceAddress

 

JarURLConnection

 

MulticastSocket

 

NetPermission

 

NetworkInterface

 

PasswordAuthentication

 

Proxy

 

ProxySelector

 

ResponseCache

 

SecureCacheResponse

 

ServerSocket

 

Socket

 

SocketAddress

 

SocketImpl

 

SocketPermission

 

StandardSocketOption

 

URI

 

URL

 

URLClassLoader

 

URLConnection

 

URLDecoder

 

URLEncoder

 

URLPermission (Added by JDK 8.)

 

URLStreamHandler

 

The java.net package’s interfaces are listed here:

ContentHandlerFactory

CookiePolicy

CookieStore

DatagramSocketImplFactory

FileNameMap

ProtocolFamily

SocketImplFactory

SocketOption

SocketOptions

URLStreamHandlerFactory


In the sections that follow, we will examine the main networking classes and show several examples that apply to them. Once you understand these core networking classes, you will be able to easily explore the others on your own.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.