39 |
package java.net; |
package java.net; |
40 |
|
|
41 |
import java.io.InputStream; |
import java.io.InputStream; |
|
import java.io.OutputStream; |
|
42 |
import java.io.IOException; |
import java.io.IOException; |
43 |
|
import java.io.OutputStream; |
44 |
import gnu.classpath.Configuration; |
import gnu.classpath.Configuration; |
45 |
|
|
46 |
/** |
/** |
117 |
* |
* |
118 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
119 |
*/ |
*/ |
120 |
protected native void close() throws IOException; |
protected native void close () throws IOException; |
121 |
|
|
122 |
/** |
/** |
123 |
* Connects to the remote address and port specified as arguments. |
* Connects to the remote address and port specified as arguments. |
223 |
* Returns an InputStream object for reading from this socket. This will |
* Returns an InputStream object for reading from this socket. This will |
224 |
* be an instance of SocketInputStream. |
* be an instance of SocketInputStream. |
225 |
* |
* |
226 |
* @return An InputStream |
* @return An input stream attached to the socket. |
227 |
* |
* |
228 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
229 |
*/ |
*/ |
231 |
{ |
{ |
232 |
return(new SocketInputStream(this)); |
return(new SocketInputStream(this)); |
233 |
} |
} |
234 |
|
|
235 |
/** |
/** |
236 |
* Returns an OutputStream object for writing to this socket. This will |
* Returns an OutputStream object for writing to this socket. This will |
237 |
* be an instance of SocketOutputStream. |
* be an instance of SocketOutputStream. |
238 |
* |
* |
239 |
* @return An OutputStream |
* @return An output stream attached to the socket. |
240 |
* |
* |
241 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
242 |
*/ |
*/ |