URL - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

URL

Description:

represents a Uniform Resource Locator. allows data to be downloaded ... for interprocess communication over the network. a Socket connects to a host and port ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 12
Provided by: robertb61
Category:
Tags: url | locator | the

less

Transcript and Presenter's Notes

Title: URL


1
URL
  • represents a Uniform Resource Locator
  • allows data to be downloaded
  • data may be retrieved via getContent(), an
    InputStream or a URLConnection
  • the url may be specified as a string
  • constructor throws MalformedURLException

2
(No Transcript)
3
URLConnection
  • defines a network connection to an object
    specified by a URL
  • use URLConnection when you want more control over
    the downloading of data

4
(No Transcript)
5
(No Transcript)
6
Socket
  • for interprocess communication over the network
  • a Socket connects to a host and port
  • uses stream protocol(default) or datagram
    protocol(unreliable)
  • can create InputStream and OutputStream objects
    to read and write to the remote host

7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
ServerSocket
  • used by servers to listen for connection requests
  • specify a port to listen on
  • accept() listens until a client requests a
    connection
  • returns a socket the server can use to
    communicate with the client

11
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com