Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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/SocketOutputStream.java
/* * @(#)SocketOutputStream.java 1.13 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.net; import java.io.FileOutputStream; import java.io.IOException; /** * This stream extends FileOutputStream to implement a * SocketOutputStream. Note that this class should <b>NOT</b> be * public. * * @version 1.13, 12/10/01 * @author Jonathan Payne * @author Arthur van Hoff */ class SocketOutputStream extends FileOutputStream { private SocketImpl impl; private byte temp[] = new byte[1]; /** * Creates a new SocketOutputStream. Can only be called * by a Socket. This method needs to hang on to the owner Socket so * that the fd will not be closed. * @param impl the socket output stream inplemented */ SocketOutputStream(SocketImpl impl) throws IOException { super(impl.getFileDescriptor()); this.impl = impl; } /** * Writes to the socket. * @param b the data to be written * @param off the start offset in the data * @param len the number of bytes that are written * @exception IOException If an I/O error has occurred. */ private native void socketWrite(byte b[], int off, int len) throws IOException; /** * Writes a byte to the socket. * @param b the data to be written * @exception IOException If an I/O error has occurred. */ public void write(int b) throws IOException { temp[0] = (byte)b; socketWrite(temp, 0, 1); } /** * Writes the contents of the buffer <i>b</i> to the socket. * @param b the data to be written * @exception SocketException If an I/O error has occurred. */ public void write(byte b[]) throws IOException { socketWrite(b, 0, b.length); } /** * Writes <i>length</i> bytes from buffer <i>b</i> starting at * offset <i>len</i>. * @param b the data to be written * @param off the start offset in the data * @param len the number of bytes that are written * @exception SocketException If an I/O error has occurred. */ public void write(byte b[], int off, int len) throws IOException { socketWrite(b, off, len); } /** * Closes the stream. */ public void close() throws IOException { impl.close(); } /** * Overrides finalize, the fd is closed by the Socket. */ protected void finalize() {} }
⏎ java/net/SocketOutputStream.java
Â
⇒ Backup JDK 1.1 Installation Directory
⇠JDK 1.1 classes.zip - Java Core Classes
2018-11-17, 91249👍, 0💬
Popular Posts:
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...