Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/net/DatagramPacket.java
/* * @(#)DatagramPacket.java 1.14 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.net; /** * This class represents a datagram packet. * <p> * Datagram packets are used to implement a connectionless packet * delivery service. Each message is routed from one machine to * another based solely on information contained within that packet. * Multiple packets sent from one machine to another might be routed * differently, and might arrive in any order. * * @author Pavani Diwanji * @version 1.14, 12/10/01 * @since JDK1.0 */ public final class DatagramPacket { /* * The fields of this class are package-private since DatagramSocketImpl * classes needs to access them. */ byte[] buf; int length; InetAddress address; int port; /** * Constructs a <code>DatagramPacket</code> for receiving packets of * length <code>ilength</code>. * <p> * The <code>length</code> argument must be less than or equal to * <code>ibuf.length</code>. * * @param ibuf buffer for holding the incoming datagram. * @param ilength the number of bytes to read. * @since JDK1.0 */ public DatagramPacket(byte ibuf[], int ilength) { if (ilength > ibuf.length) { throw new IllegalArgumentException("illegal length"); } buf = ibuf; length = ilength; address = null; port = -1; } /** * Constructs a datagram packet for sending packets of length * <code>ilength</code> to the specified port number on the specified * host. The <code>length</code> argument must be less than or equal * to <code>ibuf.length</code>. * * @param ibuf the packet data. * @param ilength the packet length. * @param iaddr the destination address. * @param iport the destination port number. * @see java.net.InetAddress * @since JDK1.0 */ public DatagramPacket(byte ibuf[], int ilength, InetAddress iaddr, int iport) { if (ilength > ibuf.length) { throw new IllegalArgumentException("illegal length"); } if (iport < 0 || iport > 0xFFFF) { throw new IllegalArgumentException("Port out of range:"+ iport); } buf = ibuf; length = ilength; address = iaddr; port = iport; } /** * Returns the IP address of the machine to which this datagram is being * sent or from which the datagram was received. * * @return the IP address of the machine to which this datagram is being * sent or from which the datagram was received. * @see java.net.InetAddress * @since JDK1.0 */ public synchronized InetAddress getAddress() { return address; } /** * Returns the port number on the remote host to which this datagram is * being sent or from which the datagram was received. * * @return the port number on the remote host to which this datagram is * being sent or from which the datagram was received. * @since JDK1.0 */ public synchronized int getPort() { return port; } /** * Returns the data received or the data to be sent. * * @return the data received or the data to be sent. * @since JDK1.0 */ public synchronized byte[] getData() { return buf; } /** * Returns the length of the data to be sent or the length of the * data received. * * @return the length of the data to be sent or the length of the * data received. * @since JDK1.0 */ public synchronized int getLength() { return length; } /** * @since JDK1.1 */ public synchronized void setAddress(InetAddress iaddr) { address = iaddr; } /** * @since JDK1.1 */ public synchronized void setPort(int iport) { if (iport < 0 || iport > 0xFFFF) { throw new IllegalArgumentException("Port out of range:"+ iport); } port = iport; } /** * @since JDK1.1 */ public synchronized void setData(byte[] ibuf) { buf = ibuf; } /** * @since JDK1.1 */ public synchronized void setLength(int ilength) { if (ilength > buf.length) { throw new IllegalArgumentException("illegal length"); } length = ilength; } }
⏎ java/net/DatagramPacket.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 176999👍, 0💬
Popular Posts:
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...