aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net
AgeCommit message (Collapse)AuthorFilesLines
2003-06-282003-06-28 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+17
* java/net/ServerSocket.java (setChannel): New method. * java/net/Socket.java (setChannel): New method. From-SVN: r68631
2003-06-272003-06-27 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+2
* java/net/Inet4Address.java (Inet4Address): Made package-private. * java/net/Inet6Address.java (Inet4Address): Made package-private. From-SVN: r68575
2003-06-25PlainDatagramSocketImpl.java: Partly merged with classpath, this mainly adds ↵Michael Koch1-8/+127
documentation. 2003-06-25 Michael Koch <konqueror@gmx.de> * java/net/PlainDatagramSocketImpl.java: Partly merged with classpath, this mainly adds documentation. From-SVN: r68468
2003-06-24URL.java: Renamed "handler" to "ph" in the whole file to match classpaths ↵Michael Koch2-42/+42
version. 2003-06-24 Michael Koch <konqueror@gmx.de> * java/net/URL.java: Renamed "handler" to "ph" in the whole file to match classpaths version. * java/net/URLStreamHandler.java: (equals): Renamed "handler" to "ph". From-SVN: r68439
2003-06-242003-06-24 Michael Koch <konqueror@gmx.de>Michael Koch3-2/+377
* java/net/SocketImpl.java (shutdownInput): Made it non-abstract method throwing an exception like in SUNs JRE. (shutdownOutput): Likewise. * java/net/SocketInputStream.java, java/net/SocketOutputStream.java: New files from classpath. From-SVN: r68416
2003-06-21PlainSocketImpl.java: Reformatted.Michael Koch1-35/+162
2003-06-21 Michael Koch <konqueror@gmx.de> * java/net/PlainSocketImpl.java: Reformatted. (PlainSocketImpl): Merged class documentaion with classpath. (in): Moved. (out): Moved. (PlainSocketImpl): New empty constructor. (finalize): Moved. (setOption): Merged documentation from classpath. (getOption): Likewise. (create): Likewise. (connect): Likewise. (bind): Likewise. (listen): Likewise. (accept): Likewise. (available): Likewise. (close): Likewise. (read): Likewise. (write): Likewise. (getInputStream): Made synchronozed to get sure that only one stream object can be created for this socket, merged documentation from classpath. (getOutputStream): Likewise. From-SVN: r68305
2003-06-21PlainSocketImpl.java: Reformatting.Michael Koch1-6/+17
2003-06-21 Michael Koch <konqueror@gmx.de> * java/net/PlainSocketImpl.java: Reformatting. (static): New implicit method. (read): Made package private. (write): Likewise. From-SVN: r68304
2003-06-202003-06-20 Michael Koch <konqueror@gmx.de>Michael Koch1-4/+12
* java/net/URLStreamHandler.java (hostsEqual): Rewritten. From-SVN: r68260
2003-06-19HttpURLConnection.java, [...]: Reworked import statements.Michael Koch8-141/+137
2003-06-19 Michael Koch <konqueror@gmx.de> * java/net/HttpURLConnection.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/net/SocketImpl.java, java/net/URLClassLoader.java: Reworked import statements. * java/net/InetAddress.java (getByAddress): Simplified. * java/net/ServerSocket.java (ServerSocket): Moved special handling during bind operation to bind(). (bind): Handle different cases when trying to bind a socket. * java/net/URLConnection.java (getHeaderFieldDate): Merged with classpath. (getHeaderFieldInt): Likewise. From-SVN: r68198
2003-06-19Inet6Address.java (isAnyLocalAddress): Don't use "==" on arrays.Tom Tromey2-5/+7
* java/net/Inet6Address.java (isAnyLocalAddress): Don't use "==" on arrays. (isLoopbackAddress): Likewise. * java/net/Inet4Address.java (isAnyLocalAddress): Don't use "==" on arrays. From-SVN: r68173
2003-06-18InetAddress.java: Reformatted to better match classpath's version.Michael Koch3-19/+53
2003-06-18 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reformatted to better match classpath's version. * java/net/URL.java (equals): Simplified. * java/net/URLConnection.java (setDoInput): Revised documentation. (getDefaultUseCaches): Likewise. (setRequestProperty): Added @since tag. From-SVN: r68143
2003-06-172003-06-17 Michael Koch <konqueror@gmx.de>Michael Koch2-23/+18
* java/net/InetSocketAddress.java (InetSocketAddress): Use wildcard address if addr is null. (InetSocketAddress): Dont duplicate implementation. (InetSocketAddress): Throw exception when hostname is null. * java/net/Socket.java: Reworked imports. (Socket): Throw exception when raddr is null, handle case when laddr is null. From-SVN: r68106
2003-06-11DatagramSocket.java: Partly merged with classpath.Michael Koch1-4/+21
2003-06-11 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java: Partly merged with classpath. From-SVN: r67755
2003-06-08URLStreamHandler.java (sameFile): Fix port value comparison.Anthony Green2-3/+11
2003-06-08 Anthony Green <green@redhat.com> * java/net/URLStreamHandler.java (sameFile): Fix port value comparison. * java/net/URL.java (handler): Make package private. * gnu/gcj/protocol/http/Handler.java (getDefaultPort): New method. From-SVN: r67640
2003-06-082003-06-08 Michael Koch <konqueror@gmx.de>Michael Koch1-64/+56
* java/net/Socket.java (Socket): Dont initialize inputShutdown and outputShutdown twice, call bind() and connect() to actually do the bind and connect tasks. (bind): Connect to canonical address if bindpoint is null, create socket and bind it to bindpoint. (connect): Check for exceptions. From-SVN: r67618
2003-06-082003-06-08 Michael Koch <konqueror@gmx.de>Michael Koch4-70/+3
* java/net/DatagramSocket.java (DatagramSocket): No need to set SO_REUSEADDRESS here. This belongs into the Multicast constructors. * java/net/DatagramSocketImpl.java (getOption): Removed. (setOption): Removed. * java/net/MulticastSocket.java (MulticastSocket): Call setReuseAddress (true). * java/net/SocketImpl.java (getOption): Removed. (setOption): Removed. From-SVN: r67617
2003-05-272003-05-27 Michael Koch <konqueror@gmx.de>Michael Koch1-8/+12
* java/net/URLConnection.java (getHeaderFieldInt): Merged with classpath. From-SVN: r67184
2003-05-26NetPermission.java, [...]: New versions from classpath.Michael Koch4-77/+94
2003-05-26 Michael Koch <konqueror@gmx.de> * java/net/NetPermission.java, java/net/NetworkInterface.java, java/net/PasswordAuthentication.java, java/net/SocketPermission.java: New versions from classpath. From-SVN: r67174
2003-05-25PushbackInputStream.java, [...]: Merged new versions from classpath.Michael Koch10-415/+393
2003-05-25 Michael Koch <konqueror@gmx.de> * java/io/PushbackInputStream.java, java/net/Authenticator.java, java/net/ContentHandler.java, java/net/ContentHandlerFactory.java, java/net/DatagramSocket.java, java/net/DatagramSocketImpl.java, java/net/DatagramSocketImplFactory.java, java/net/FileNameMap.java, java/net/SocketImplFactory.java, java/net/SocketOptions.java, java/net/URLStreamHandlerFactory.java: Merged new versions from classpath. From-SVN: r67165
2003-05-092003-05-09 Michael Koch <konqueror@gmx.de>Michael Koch2-9/+19
* java/net/JarURLConnection.java (getJarEntry): Merged documentation from classpath. (getJarFile): Likewise. (getMainAttributes): Likewise. (getAttributes): Likewise. (getManifest): Likewise. (getCertificates): Reformatted. * java/net/URLConnection.java: Little classpath merge. From-SVN: r66625
2003-05-052003-05-05 Michael Koch <konqueror@gmx.de>Michael Koch1-9/+6
* java/net/NetworkInterface.java (networkInterfaces): Removed. (getByName): Use getRealNetworkInterfaces() instead of networkInterfaces. (getByInetAddress): Likewise. (getNetworkInterfaces): Likewise. (toString): Fix output of addresses of an interface. From-SVN: r66500
2003-05-05Forgot to add this to commit line on 2003/05/02. Its in Changelog already.Michael Koch1-1/+0
>2003-05-02 Michael Koch <konqueror@gmx.de> > > * java/net/URI.java > (create): Doesnt throws any exceptions. From-SVN: r66474
2003-05-022003-05-02 Michael Koch <konqueror@gmx.de>Michael Koch1-60/+96
* java/net/URI.java (create): Doesnt throws any exceptions. * java/net/URLConnection.java (URLConnection): Commend added. (getExpiration): The header field is called "expires" not "expiration". (getHeaderField): Merged documentation with classpath. (getHeaderFieldInt): Likewise. (getHeaderFieldDate): Likewise. (getHeaderFieldKey): Likewise. (getPermission): Likewise. (setDefaultUseCaches): Likewise. (setRequestProperty): Likewise. (addRequestProperty): Likewise. (getRequestProperty): Likewise. (getRequestProperties): Likewise. (setDefaultRequestProperty): Likewise. (getDefaultRequestProperty): Likewise. (guessContentTypeFromStream): Likewise. (getFileNameMap): Likewise. (setFileNameMap): Likewise. (setDoInput): Merged implementation and documentation with classpath. (setDoOutput): Likewise. (setAllowUserInteraction): Likewise. (setDefaultAllowUserInteraction): Likewise. (setContentHandlerFactory): Made it synchronized, merged documentation with classpath. (guessContentTypeFromName): Renamed argument fname to filename to match classpath, merged documentation with classpath. From-SVN: r66384
2003-05-022003-05-02 Michael Koch <konqueror@gmx.de>Michael Koch3-69/+228
* java/net/JarURLConnection.java (JarURLConnection): Class documentation merged with classpath. (getJarFileURL): Moved and documentation merged with classpath. (getEntryName): Likewise. (JarURLConnection): Documentation merged with classpath. (getJarEntry): Likewise. (getJarFile): Likewise. * java/net/PlainDatagramSocketImpl.java: Class documentation moved. * java/net/URLConnection.java (fileNameMap): Moved and documentation merged with classpath. (factory): Likewise. (defaultAllowUserInteraction): Likewis. (defaultUseCaches): Likewise. (allowUserInteraction): Likewise. (connected): Likewise. (url): Likewise. (connect): Documentation merged with classpath. (getURL): Likewise. (getContentLength): Likewise. (getContentType): Likewise. (getContentEncoding): Likewise. (getExpiration): Likewise. (getDate): Likewise. (getLastModified): Likewise. (getHeaderField): Likewise. (getContent): Likewise. (getPermission): Likewise. (getInputStream): Likewise. (getOutputStream): Likewise. (toString): Likewise. (getDoInput): Likewise. (getDoOutput): Likewise. (setAllowUserInteraction): Likewise. (getAllowUserInteraction): Likewise. (setDefaultAllowUserInteraction): Likewise. (getDefaultAllowUserInteraction): Likewise. (setUseCaches): Likewise. (getUseCaches): Likewise. (setIfModifiedSince): Likewise. (getIfModifiedSince): Likewise. (setDefaultRequestProperty): Likewise. (getDefaultRequestProperty): Likewise. (setContentHandlerFactory): Likewise. (setFileNameMap): Likewise. From-SVN: r66379
2003-05-02InetAddress.java: Merged class documentation with classpath.Michael Koch5-18/+114
2003-05-02 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Merged class documentation with classpath. * java/net/JarURLConnection.java: Explicitely import all used classes. * java/net/URL.java: Reformatting. * java/net/ServerSocket.java, java/net/Socket.java: New versions from classpath. From-SVN: r66376
2003-04-06URLConnection.java: Import classes directly.Michael Koch1-15/+80
2003-04-06 Michael Koch <konqueror@gmx.de> * java/net/URLConnection.java: Import classes directly. (URLConnection): Merged class documentation with classpath. (url): Moved, documentation from classpath added. (doInput): Moved, documentation from classpath added. (doOutput): Moved, documentation from classpath added. (allowUserInteraction): Moved. (useCaches): Moved, documentation from classpath added. (ifModifiedSince): Moved, documentation from classpath added. (connected): Moved, documentation from classpath added. From-SVN: r65301
2003-03-24natInetAddressNoNet.cc: Include stddef.h.Michael Koch3-1/+6
2003-03-24 Michael Koch <konqueror@gmx.de> * java/net/natInetAddressNoNet.cc: Include stddef.h. * java/net/natPlainDatagramSocketImplNoNet.cc: Fixed inlcude of java/net/DatagramPacket.h. * java/net/natPlainSocketImplNoNet.cc: Include some missing classes. From-SVN: r64795
2003-03-20InetAddress.java, [...]: Merged copyright statements with classpath for ↵Michael Koch5-39/+180
easier merging. 2003-03-20 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/JarURLConnection.java, java/net/PlainDatagramSocketImpl.java, java/net/PlainSocketImpl.java, java/net/URLConnection.java: Merged copyright statements with classpath for easier merging. From-SVN: r64611
2003-03-18configure.in: Fixed links to platform dependant java.net files.Michael Koch4-2392/+0
2003-03-18 Michael Koch <konqueror@gmx.de> * configure.in: Fixed links to platform dependant java.net files. * configure: Regenerated. * java/net/natInetAddress.cc, java/net/natNetworkInterface.cc, java/net/natPlainDatagramSocketImpl.cc, java/net/natPlainSocketImpl.cc: Removed. From-SVN: r64527
2003-03-18configure.in: Create links to architecture dependent files...Michael Koch12-0/+4719
2003-03-18 Michael Koch <konqueror@gmx.de> * configure.in: Create links to architecture dependent files, introduced PLATFORMNET variable (set to NoNet for newlib usage). * configure: Regenerated. * java/net/natInetAddressNoNet.cc, java/net/natInetAddressPosix.cc, java/net/natInetAddressWin32.cc, java/net/natNetworkInterfaceNoNet.cc, java/net/natNetworkInterfacePosix.cc, java/net/natNetworkInterfaceWin32.cc, java/net/natPlainDatagramSocketImplNoNet.cc, java/net/natPlainDatagramSocketImplPosix.cc, java/net/natPlainDatagramSocketImplWin32.cc, java/net/natPlainSocketImplNoNet.cc, java/net/natPlainSocketImplPosix.cc, java/net/natPlainSocketImplWin32.cc: New files. From-SVN: r64526
2003-03-172003-03-17 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+1
* java/net/DatagramSocket.java (connect): Fixed comment. * java/nio/ByteBuffer.java (hasArray): Fixed comment. From-SVN: r64487
2003-03-10DatagramSocket.java, [...]: Fixed some documentation tags to make javadoc ↵Michael Koch5-22/+22
and friends happy. 2003-03-10 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java, java/net/MulticastSocket.java, java/net/Socket.java, java/net/URL.java, java/net/URLConnection.java: Fixed some documentation tags to make javadoc and friends happy. From-SVN: r64083
2003-03-07No changelog, just replaced one tabulator with some spacesMichael Koch1-1/+1
to merge with classpath. From-SVN: r63929
2003-03-04NetworkInterface.java: Merged with classpath.Michael Koch1-2/+1
2003-03-03 Michael Koch <konqueror@gmx.de> * java/net/NetworkInterface.java: Merged with classpath. From-SVN: r63769
2003-03-032003-03-03 Michael Koch <konqueror@gmx.de>Michael Koch4-12/+16
* java/net/DatagramSocket.java (connect): Merged comment from classpath. (receive): Merged documentation from classpath. * java/net/Socket.java (setSoTimeout): Clarified documentation. * java/net/URL.java (getPath): Merged from classpath. (getUserInfo): Merged from classpath. (getQuery): Merged from classpath. * java/net/URLStreamHandler.java (toExternalForm): Merged from classpath. From-SVN: r63714
2003-03-02NetPermission.java: Merged copyright with classpath.Michael Koch1-1/+1
2003-03-02 Michael Koch <konqueror@gmx.de> * java/net/NetPermission.java: Merged copyright with classpath. From-SVN: r63690
2003-03-022003-03-02 Michael Koch <konqueror@gmx.de>Michael Koch4-5/+15
* java/net/HttpURLConnection.java (HTTP_SERVER_ERROR): Deprecated. * java/net/MulticastSocket.java (send): Replaced checkMulticast with appropriate checkPermission call, deprecated. * java/net/URLDecoder.java (decode): Deprecated. * java/net/URLEncoder.java (encode): Deprecated. From-SVN: r63679
2003-03-022003-03-02 Michael Koch <konqueror@gmx.de>Michael Koch1-15/+19
* java/net/DatagramSocket.java (closed): New member variable. (close): Use closed variable. (getInetAddress): No need to call isConnected(). (getPort): No need to call isConnected(). (disconnect): Reset remoteAddress and remotePort, fixed typo. (isClosed): Reimplemented. From-SVN: r63662
2003-03-01File (getAbsolutePath): Prefix drive specifier on Windows for paths starting ↵Ranjit Mathew1-4/+29
with a '\'. 2003-03-01 Ranjit Mathew <rmathew@hotmail.com> * java/io/File (getAbsolutePath): Prefix drive specifier on Windows for paths starting with a '\'. (toURL): Make URL more consistent with what Sun's JDK returns. * java/io/natFileWin32.cc (java::io::File::isAbsolute): Return true only if the path is a UNC network path or it starts with a drive specifier. * java/net/URLStreamHandler.java (parseURL): Correct minor typo. Be prepared to handle either '/' or '\\' in the file path for Windows if using the "file" protocol. Canonicalise the file path if using a relative path in the given context and the "file" protocol. From-SVN: r63635
2003-02-172003-02-17 Michael Koch <konqueror@gmx.de>Michael Koch1-18/+26
* java/net/DatagramSocket.java (connect): Merged with classpath. (disconnect): Merged documentation with classpath. (receice): Merged documentation with classpath. (send): Merged documentation with classpath. From-SVN: r63000
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch7-66/+104
* java/net/NetPermission.java (NetPermission): Make doucmentation match the method declaration. * java/net/NetworkInterface.java (equals): Reformated for GNU coding style. * java/net/ServerSocket.java: Merged with classpath. * java/net/Socket.java: Partly merged with classpath (Added some @since). * java/net/SocketImpl.java (localPort): Merged with classpath (initialize with -1). * java/net/SocketPermission.java: Merged with classpath (reindented). * java/net/URLDecoder.java: Merged with classpath (reindented). From-SVN: r62824
2003-01-16SocketImpl.java (toString): Don't explicitly call toString() on possible ↵Mark Wielaard1-2/+3
null address. * java/net/SocketImpl.java (toString): Don't explicitly call toString() on possible null address. From-SVN: r61404
2003-01-162003-01-16 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+5
* java/net/MulticastSocket.java (setInterface): Reindented. From-SVN: r61379
2003-01-142003-01-14 Michael Koch <konqueror@gmx.de>Michael Koch3-1/+8
* java/net/InetSocketAddress.java (serialVersionUID): New member variable. * java/net/NetPermission.java (NetPermission): Dont implement java.io.Serialization directly. * java/net/SocketAddress.java: (serialVersionUID): Documentation added. From-SVN: r61305
2003-01-112003-01-10 Michael Koch <konqueror@gmx.de>Michael Koch4-13/+49
* java/net/DatagramSocket.java (ch): Description added. (remotePort): Initialize with -1. (connect): Doesnt throws SocketException. * java/net/MulticastSocket.java (setInterface): Merge with Classpath. * java/net/ServerSocket.java (closed): New member variable. (bind): Check if socket is closed. (close): Close an associated channel too, set new value to closed. (isBound): Reindented. (isClosed): Implemented. * java/net/Socket.java (closed): New member variable. (bind): Check if socket is closed. (connect): Check if socket is closed. (close): Close an associated channel too, set new value to closed. (isClosed): Implemented. From-SVN: r61185
2003-01-07DatagramSocket.java: Added classpath license info.Michael Koch1-267/+326
2003-01-07 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java: Added classpath license info. (DatagramSocket): Merged description with classpath. (close): Merged description with classpath. (getChannel): Merged description with classpath. (getInetAddress): Merged description with classpath. (getPort): Merged description with classpath. (getLocalAddress): Merged description with classpath. (getLocalPort): Merged description with classpath. (getSoTimeout): Merged description with classpath. (setSoTimeout): Merged description with classpath. (getSendBufferSize): Merged description with classpath. (setSendBufferSize): Merged description with classpath. (getReceiveBufferSize): Merged description with classpath. (setReceiveBufferSize): Merged description with classpath. From-SVN: r60989
2003-01-03HttpURLConnection.java (HTTP_NOT_IMPLEMENTED): Must be public.Mark Wielaard1-24/+34
* java/net/HttpURLConnection.java (HTTP_NOT_IMPLEMENTED): Must be public. (HTTP_USE_PROXY): Add field. (getResponseVals): Only set responseCode when not yet explicitly set by subclass. From-SVN: r60809
2003-01-02URLClassLoader.java (Resource.getCodeSource): Fix check certs == null.Mark Wielaard1-28/+5
* java/net/URLClassLoader.java (Resource.getCodeSource): Fix check certs == null. (getCanonicalFileURL): Removed method. (JarURLLoader): Don't call removed method. (FileURLLoader): Likewise. (FileURLLoader.getResource): Don't canonicalize file name. Co-Authored-By: Jeroen Frijters <jeroen@sumatra.nl> From-SVN: r60780
2002-12-30URLStreamHandler.java (toExternalForm): Ignore port if zero or smaller.Mark Wielaard1-1/+1
* java/net/URLStreamHandler.java (toExternalForm): Ignore port if zero or smaller. From-SVN: r60657
2002-12-11URLClassLoader.java (getCanonicalFileURL): New method.Mark Wielaard1-21/+44
2002-12-10 Mark Wielaard <mark@klomp.org> Tom Tromey <tromey@redhat.com> * java/net/URLClassLoader.java (getCanonicalFileURL): New method. (JarURLLoader): Use it. (FileURLLoader): Likewise. (JarURLResource.getURL): Use chained exception. (FileResource.getURL): Likewise. (FileURLLoader.getResource): Use canonical file name. (addURL): Indentation fix. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r60019