Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Java Tutorial
Network 237 codes
Home
Java Tutorial
Network
1 A class that displays information about a URL
2 A class to represent a Uniform Resource Identifier (URI)
3 A multithreaded Socket Server
4 A Thin SMTP Client
5 A utility class for parsing HTTP dates as used in cookies and other headers
6 A Web Page Source Viewer
7 Accepting a Connection on a ServerSocketChannel
8 Accessing a Password-Protected URL
9 Add Parameter to URL
10 Add parameters stored in the Map to the uri string
11 Add two URI path segments
12 All Headers
13 An updated version of the ListNets program that uses the NetworkInterface enhancements
14 Authenticator
15 Authenticator setDefault(new Authenticator())
16 Build query string for URL
17 Call a servlet from a Java command line application
18 Chain the InputStream to a Reader
19 Channel selector
20 Check if a page exists
21 Cipher Socket
22 Compare two InetAddresses
23 Compressed socket
24 Connect through a Proxy
25 Convert a URL to a URI
26 Convert an absolute URI to a URL
27 Converting Between a Filename Path and a URL
28 Converting Between a URL and a URI
29 Converting text to be used within a URL
30 Converting x-www-form-urlencoded Data
31 CookieStore
32 Create a ServerSocket
33 Create a socket
34 Create a socket with a timeout
35 Create a socket without a timeout
36 Create a URL that refers to a jar file in the file system
37 Create a URL that refers to an entry in the jar file
38 Create and resolve URI
39 Create BufferedInputStream from URL
40 Create InetAddress by Name
41 Create Socket by IP address and port number
42 Create SocketChannel from IP address
43 Creating a Non-Blocking Socket
44 Creating a URL with a single string
45 Creating a URL With components
46 Creating an SSL Client Socket
47 Creating an SSL Server Socket
48 Data server
49 Day time Client (Getting the time)
50 Daytime Client
51 Decoding and encoding URLs
52 Demonstrate asynchronous connection of a SocketChannel
53 Detect Proxy Settings for Internet Connection
54 Detecting When a Non-Blocking Socket Is Closed by the Remote Host
55 Display header information
56 Display request method
57 Display response message
58 Display Socket InetAddress, Port, LocalPort and Local address
59 Download and display the content
60 Downloading a web page using URL and URLConnection classes
61 Dump a page using the HTTPS protocol
62 Echo Client
63 Eliminate Query
64 Encode a path as required by the URL specification
65 Encode a URI path
66 Encoding Aware Source Viewer
67 Enumeration of NetworkInterface
68 Escape HTML special characters from a String
69 Extends HTMLEditorKit ParserCallback
70 Extract links from an HTML page
71 Extracts the base URL from the given URL by stripping the query and anchor part
72 Fetch Cookie with CookieHandler, CookieManager and CookieStore
73 File size from URL
74 Find a point in URI where URI can be split into a namespace part and a local name
75 Find and display hyperlinks contained within a web page
76 Finger Client
77 Generic Server
78 Get All addresses by name
79 Get all hyper links from a web page
80 Get canonical host name
81 Get Content from a URL
82 Get files updated last 24 hours
83 Get Host name from InetAddress
84 Get InputStream and OutputStream from Socket
85 Get IP address from NetworkInterface and create server socket
86 Get internet address from connected socket client
87 Get local host from InetAddress
88 Get MAC address of a host
89 Get my own address
90 Get Parent URI
91 Get response code
92 Get response header from HTTP request
93 Get the date of a url connection
94 Get the document expiration date
95 Get the document Last-modified date
96 Get the entry name; it should be the same as specified on URL
97 Get URI from File
98 Getting a Jar File Using a URL
99 Getting an Image from a URL
100 Getting Text from a URL
101 Getting the Cookies from an HTTP Connection
102 Getting the IP Address of a Hostname
103 Getting the Links in an HTML Document
104 Getting the Response Headers from an HTTP Connection
105 Getting the Text in an HTML Document
106 Grabbing a page using socket
107 Header Viewer
108 Hello Server
109 High Port Scanner
110 HTML Parser
111 HTML parser based on HTMLEditorKit ParserCallback
112 Http connection Utilities
113 Http Constants
114 HTTP Grab with FileChannel
115 Http Header Helper
116 Identify ourself to a proxy
117 Identify yourself using HTTP Authentification
118 InetAddress java net Authenticator getRequestingSite()
119 Int java net Authenticator getRequestingPort()
120 Interface Lister
121 Is Equal URI
122 Java net Authenticator can be used to send the credentials when needed
123 Java net InetAddress isReachable(int) can be used to check if a server is reachable or not
124 Java net PasswordAuthentication PasswordAuthentication(String userName, char[] password)
125 Java net Socket
126 Java net URL
127 Java net URLConnection
128 Joining a Multicast Group
129 Last Modified
130 Lightweight HTTP Server
131 List All Cookies
132 Local Port Scanner
133 Locating files by path or URL
134 Logging Server based on SocketServer
135 Low Port Scanner
136 Make a URL from the given string
137 Multicast Sender
138 Multicast Sniffer
139 NetworkInterface
140 New IO Hello Server
141 New URL(mailto
142 Normalize a uri containing and paths
143 Object server
144 Parse a x-www-form-urlencoded string
145 Parse Host
146 Parse Port
147 Parsing a URL
148 Parsing and formatting HTTP dates as used in cookies and other headers
149 Ping a host
150 Port Scanner
151 POSTing data to an HTTP server
152 Preventing Automatic Redirects in a HTTP Connection
153 Programmatic Access to Network Parameters
154 ProtocolTester
155 Provides a method to encode any string into a URL-safe form
156 Provides a simple interface for assembling GET URLs
157 Read a GIF or CLASS from an URL and save it locally
158 Read and write through socket
159 Read and write with DatagramPacket
160 Read data from a URL
161 Read float number from a Socket
162 Read from a URL with buffered stream
163 Read from URL
164 Read Object from Socket
165 Reading A Web Resource
166 Reading from a SocketChannel
167 Reading from a URLConnection
168 Receiving a Datagram
169 Receiving from a Multicast Group
170 Relative URL
171 Remove any authorisation details from a URI
172 Remove parameters from a uri
173 Report By Address
174 Report By Name
175 Resolve a relative URL
176 Return True if the uri has a scheme
177 Returns the anchor value of the given URL
178 Returns true if the URL represents a path, and false otherwise
179 Save binary file from URL
180 Save URL contents to a file
181 Save Web page to a file
182 Secure Communication with JSSE
183 Send a Datagram
184 Send string to each connected client
185 Sending a Cookie to an HTTP Server
186 Sending a Datagram
187 Sending a POST Request Using a Socket
188 Sending a POST Request Using a URL
189 Sending a POST Request with Parameters From a Java Class
190 Sending to a Multicast Group
191 ServerSocketChannel
192 Set up DatagramChannel
193 Show the content length
194 Show the content type
195 Socket based on new IO and DatagramChannel
196 Socket Info
197 SSL Server Demo
198 String java net Authenticator getRequestingHost()
199 String java net Authenticator getRequestingPrompt()
200 Test non-blocking accept() using ServerSocketChannel
201 Thread based ServerSocket
202 Time Client
203 Time server
204 Timer server with Thread
205 Transfer a file via Socket
206 Translate host names to Internet addresses
207 UDP Discard Client
208 UDP Echo Client
209 UDP Echo Server With Channels
210 UDP pocket sender and receiver
211 UDP Port Scanner
212 UDP Time Client
213 UDP time server based on New IO
214 URI
215 URL connection and proxy
216 URL decoder
217 URL encoding
218 URL Equality
219 URL Splitter
220 URLConnection openStream is more powerful than URL openStream
221 URLDecoder 2
222 URLEncoder
223 Use BufferedReader to read content from a URL
224 Use ByteBuffer for Socket communication
225 Use SocketChannel to get Web page
226 User Datagram Protocol Programming
227 Using a Selector to Manage Non-Blocking Server Sockets
228 Using CookieHandler in Java 5
229 Using javax swing text html HTMLEditorKit to parse html document
230 Utility to convert File to URL
231 Web ping
232 When no entry is specified on the URL, the entry name is null
233 Whois Client
234 Writing to a SocketChannel
235 Writing to a Web server
236 Zip server socket
237 Zip socket