summaryrefslogtreecommitdiffstats
path: root/libjava/java/net
Commit message (Collapse)AuthorAgeFilesLines
* 2004-02-11 Michael Koch <konqueror@gmx.de>mkoch2004-02-116-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (setReuseAddress): Use Boolean.valueOf() instead of creating a new Boolean object. (setBroadcast): Likewise. * java/net/MulticastSocket.java (setLoopbackMode): Likewise. * java/net/ServerSocket.java (setReuseAddress): Likewise. * java/net/Socket.java (setTcpNoDelay): Likewise. (setSoLinger): Likewise. (setOOBInline): Likewise. (setKeepAlive): Likewise. (setReuseAddress): Likewise. * java/net/URLConnection.java (setContentHandler): Replace == with equals(). * java/net/URLStreamHandler.java (hostSEquals): Fix checking host addresses. (toExternalForm): Dont check protocol for null. We know already its not null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77670 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/DatagramChannelImpl.javamembar2004-02-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | (inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. (receive): Use capacity() - position() of destination buffer instead of remaining(). Set and reset our "in channel operation indicator" before and after delegating the receive to our datagram socket. Removed testing code. Update destination buffer's current position if it is backed by a byte array (hasArray() is true). (send): Set and reset our "in channel operation indicator" before and after delegating the send to our datagram socket. Removed testing code. Update source buffer's current position if it is backed by a byte array (hasArray() is true). * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)): Use capacity() - position() of destination buffer instead of remaining(). * java/net/DatagramSocket.java (receive): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this operation. (send): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77173 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/net/PlainSocketImpl.javamembar2004-01-302-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. * gnu/java/nio/ServerSocketChannelImpl.java (accept): Set and reset our server socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the accept to our server socket. * gnu/java/nio/SocketChannelImpl.java (connect): Set and reset our socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the operation to our socket. (read): Likewise. (write): Likewise. * java/net/ServerSocket.java (implAccept): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this accept operation. * java/net/Socket.java (connect): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this connect operation. * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Only call implConfigureBlocking() if the desired blocking mode is different from our current one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76956 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-07 Michael Koch <konqueror@gmx.de>mkoch2004-01-071-1/+1
| | | | | | | * java/net/ServerSocket.java (isBound): Fixed documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75506 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-06 Michael Koch <konqueror@gmx.de>mkoch2004-01-061-11/+14
| | | | | | | | | | | | | | | * java/net/URLConnection.java (contentHandler): Removed. (locale): Removed. (getHeaderFields): Return an empty map instead of null. (getContent): Connect if needed, renamed "cType" to "type" and "contentHandler" to "ch" and made it a local variable. (getPermission): Don't use package in class name. (setDefaultRequestProperty): Fixed typo in documentation. (initializeDateFormats): Made locale a local variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75466 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>mkoch2003-12-311-0/+4
| | | | | | | | * java/net/URL.java (URL): Change context path to "/" if it is empty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75264 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-25 Michael Koch <konqueror@gmx.de>mkoch2003-12-251-2/+8
| | | | | | | | | * java/net/ServerSocket.java bind(): If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as address to bind to. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75023 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-20 Michael Koch <konqueror@gmx.de>mkoch2003-12-201-228/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/net/protocol/jar/Connection.java (connectionCache): New field. (connect): New method. (getInputStream): New method. (hdrHash): New field. (hdrVec): New field. (gotHeaders): New field. (getHeaderField): New method. (getHeaderFields): New method. (getHeaderFieldKey): New method. (getKey): New method. (getField): New method. (getHeaders): New method. * java/net/JarURLConnection.java (connectionCache): Removed. (connect): Removed. (getInputStream): Removed. (hdrHash): Removed. (hdrVec): Removed. (gotHeaders): Removed. (getHeaderField): Removed. (getHeaderFields): Removed. (getHeaderFieldKey): Removed. (getKey): Removed. (getField): Removed. (getHeaders): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74895 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-20 Guilhem Lavaux <guilhem@kaffe.org>mkoch2003-12-201-2/+12
| | | | | | | | | | | * gnu/java/net/URLParseError.java: New file. * gnu/java/net/protocol/jar/Handler.java (parseURL): Throw URLParseError if needed, fix '/' handling. * java/net/URL.java (URL): Catch URLParseError and transform it into a MalformedURLException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74877 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-09 Michael Koch <konqueror@gmx.de>mkoch2003-12-093-33/+33
| | | | | | | | | | | | * java/net/DatagramSocket.java (close): Directly return if socket is closed. * java/net/ServerSocket.java (close): Directly return if socket is closed. * java/net/Socket.java (close): Directly return if socket is closed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74470 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-04 Michael Koch <konqueror@gmx.de>mkoch2003-12-041-58/+30
| | | | | | | | | | | | | | | | | | | | * java/net/DatagramPacket.java (length): Made packge-private to make it accessible via CNI. (maxlen): New field. (DatagramPacket): Cleaned up. (setSocketAddress): Add message to exception. (setData): Call other setData(). (setData): Call setLength(). (setLength): Initialize maxlen too. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData): Get maximal length from maxlen field, set length field directly. (receive): Likewise. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData): Get maximal length from maxlen field, set length field directly. (receive): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74278 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Added new MinGW-specific configure flagmembar2003-12-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --with-win32-nlsapi. Added new AC_DEFINE MINGW_LIBGCJ_UNICODE. Add -lunicows to MinGW SYSTEMSPEC if --with-win32-nlsapi is set to unicows. * configure: Rebuilt. * include/config.h.in: Rebuilt. * win32.cc (_Jv_Win32NewString): Implemented. (nativeToUnicode): New helper function defined only for non-UNICODE builds. (unicodeToNative): Likewise. (_Jv_Win32TempString): Implemented. (lots): Refactored using tchar.h macros. (WSAEventWrapper): Use _Jv_Win32NewString. (_Jv_platform_initialize): Use GetModuleFileNameA instead of GetModuleFileName. (_Jv_platform_initProperties): Use _Jv_Win32NewString. Use temporary stack buffer instead of a heap buffer. * include/win32.h Added defines for UNICODE and _UNICODE if MINGW_LIBGCJ_UNICODE is defined; added tchar.h include. (_Jv_Win32TempString): Declared new helper class. (JV_TEMP_STRING_WIN32): New helper macro. (_Jv_Win32NewString): Declared new helper method. * java/io/natFileDescriptorWin32.cc (open): Use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (write): Reformatted slightly. * java/io/natFileWin32.cc (lots): Use tchar.h macros; use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (getCanonicalPath): Use _Jv_Win32NewString instead of JvNewStringUTF. (performList): Likewise. * java/lang/natWin32Process.cc (ChildProcessPipe): Use tchar.h macros. (startProcess): Use tchar.h macros, JV_TEMP_STRING_WIN32, and UNICODE environment flag for CreateProcess. * java/net/natNetworkInterfaceWin32.cc (winsock2GetRealNetworkInterfaces): Use tchar.h macros and _Jv_Win32NewString. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74201 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-02 Michael Koch <konqueror@gmx.de>mkoch2003-12-023-7/+15
| | | | | | | | | | | | * java/net/DatagramSocket.java (close): Close associated DatagramChannel object. * java/net/ServerSocket.java * java/net/Socket.java (close): Reset impl and bound before calling getChannel().close() to prevent from loops. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74183 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-30 Jeff Sturm <jsturm@one-point.com>mkoch2003-11-304-25/+8
| | | | | | | | | | | | | | | | * java/net/InetAddress.java: (static): Don'f force DNS request for ANY_IF address. 2003-11-30 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/natInetAddressNoNet.cc, java/net/natInetAddressPosix.cc, java/net/natInetAddressWin32.cc: Reverted my last patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74074 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-28 Michael Koch <konqueror@gmx.de>mkoch2003-11-284-7/+24
| | | | | | | | | | | | | | | * java/net/InetAddress.java (lookup): New method that doesnt lookup "0.0.0.0". (ImplLookup): Renamed from lookup. * java/net/natInetAddressNoNet.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressPosix.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressWin32.cc (ImplLookup): Renamed from lookup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74026 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-1/+26
| | | | | | | | | | | | | | | | * java/net/URLStreamHandler.java (parseURL): Added comment in catch statement. (canonicalizeFilename): Add documentation. (sameURL): Completed documentation. (equals): Likewise. (hostsEqual): Likewise. (getDefaulPort): Likewise. (hashCode): Likewise. (toExternalForm): Likewise. (getHostName): Fix empty hostname check, completed documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73962 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Guilhem Lavaux <guilhem@kaffe.org>mkoch2003-11-261-7/+25
| | | | | | | | | | | Mark Wielaard <mark@klomp.org> * java/net/URLStreamHandler (parseUrl): Fixed URL parsing ('@' should be checked to distinguish port from userinfo). (toExternalForm): Add @ userInfo if necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73953 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-42/+31
| | | | | | | | | * java/net/DatagramSocket.java (DategramSocket, bind): Moved binding code from DatagramSocket constructor to bind method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73952 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-262-113/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (impl): Made private. (bound): New private member variable. (DatagramSocket): Fixed documentation, use getImpl(). (getImpl): New package-private method. (isClosed): Use getImpl(). (getLocalAddress): Completed documentation, use getImpl(). (getLocalPort): Use getImpl(). (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (connect): Likewise. (disconnect): Likewise. (receive): Likewise. (send): Likewise. (setReuseAddress): Likewise. (setTrafficClass): Likewise. (bind): Added message to exception. (isClosed): Completed documentation. (getChannel): Likewise. (connect): Added missing exception, refined exception message. (isBound): Completed documentation, just return bound. (isConnected): Completed documentation. (getRemoteSocketAddress): Likewise. (getReuseAddress): Completed documentation, use getImpl(). (setSoBroadcast): Likewise. (getSoBroadcast): Likewise. (getTrafficClass): Likewise. (getLocalSocketAddress): Simplified. * java/net/MulticastSocket.java (MulticastSocket): Removed comment not applying anymore. (getInterface): Use getImpl(). (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopback): Likewise. (getLoopback): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73951 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-262-14/+29
| | | | | | | | | | | | | | | | | | | | * java/net/Socket.java (implCreated): Dont set default value explicitely, added documentation. (inputShutdown): Likewise. (outputShutdown): Likewise. (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. * java/net/ServerSocket.java (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73949 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-9/+43
| | | | | | | | | | | | | | | | | | | | * java/net/URL.java (URL): Fixed documentation to be HTML compliant. (getContent): Completed documentation. (getFile): Likewise. (getPath): Likewise. (getAuthority): Likewise. (getHost): Likewise. (getDefaultPort): Likewise. (getProtocol): Likewise. (hashCode): Likewise. (openConnection): Likewise. (openStream): Likewise. (set): Likewise. (getURLStreamHandler): Wrapped lines to fit into our 79 chars rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73947 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-3/+30
| | | | | | | | | | | | | | | | | * java/net/InetSocketAddress.java (hostname): Made private, added documentation. (addr): Likewise. (port): Likewise. (equals): Completed documentation. (getAddress): Likewise. (getHostName): Likewise. (getPort): Likewise. (hashCode): Likewise. (isUnresolved): Likewise. (toString): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73946 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-5/+5
| | | | | | | | * java/net/DatagramPacket.java (DatagramPacket): Fixed documentation to become legal HTML. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73944 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-25 Michael Koch <konqueror@gmx.de>mkoch2003-11-254-107/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (factory): Made private. (closed): Removed. (DatagramSocket): Check impl argument, use constructor with SocketAddress argument. (close): Set impl to null, use isClosed(). (isClosed): Check for impl == null. (getLocalAddress): Use isClosed(). (getLocalPort): Check if socket is closed. (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (receive): Likewise. (send): Likewise. (bind): Likewise. (connect): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setBroadcast): Likewise. (getBroadcast): Likewise. (setTrafficClass): Likewise. (getTrafficClass): Likewise. * java/net/MulticastSocket.java (getInterface): Check if socket is closed. (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopbackMode): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. * java/net/ServerSocket.java (closed): Removed. (close): Check if socket is closed, set impl to null. (isClosed): Check impl == null; (ServerSocket): Check impl argument. (getInetAddress): Check if socket is bound. (getLocalPort): Likewise. (getLocalSocketAddress): Likewise. (bind): Check if socket is closed. (implAccept): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (toString): Make output compliant to JDK 1.4.2. * java/net/Socket.java (closed): Removed. (Socket): Fixed documentation. (connect): Check if socket is closed, changed exception text, fixed documentation. (getInputStream): Check of socket is closed and connected. (getOutputStream): Likewise. (bind): Check if socket is closed. (setTcpNoDelay): Likewise. (getTcpNoDelay): Likewise. (setSoLinger): Likewise. (getSoLinger): Likewise. (sendUrgentData): Likewise. (setOOBInline): Likewise. (getOOBInline): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setSendBufferSize): Likewise. (getSendBufferSize): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setKeepAlive): Likewise. (getKeepAlive): Likewise. (close): Likewise. (shutdownInput): Likewise. (shutdownOutput): Likewise. (getReuseAddress): Likewise. (getTrafficClass): Likewise. (setTrafficClass): Likewise. (isClosed): Check impl == null. (toString): Added missing ']'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73918 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-25 Michael Koch <konqueror@gmx.de>mkoch2003-11-242-39/+47
| | | | | | | | | | | * java/net/DatagramSocket.java (DatagramSocket): Move binding code to bind(), simplify constructors. * java/net/MulticastSocket.java (MulticastSocket): Call parent constructor with null argument, bind socket after setReuseAddress is called, simplify constructors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73902 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-19 Michael Koch <konqueror@gmx.de>mkoch2003-11-191-48/+135
| | | | | | | | | | | * java/net/Socket.java (implCreated): New variable that indicates created impl. (getImpl): New method. (toString): Return more SUN compliant string representation. (various): Use getImpl() instead of impl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73732 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-11 Michael Koch <konqueror@gmx.de>mkoch2003-11-112-2/+2
| | | | | | | | | | | | | | | | | | * java/awt/Font.java, java/awt/datatransfer/DataFlavor.java, java/math/BigInteger.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/rmi/MarshalledObject.java, java/rmi/server/RMIClassLoader.java, java/security/cert/CertStore.java, java/sql/Timestamp.java, java/text/SimpleDateFormat.java, javax/naming/CompoundName.java: Removed some redundant obj == null checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73448 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-11 Micheal Koch <konqueror@gmx.de>mkoch2003-11-111-4/+6
| | | | | | | | * java/net/URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73445 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/Inet4Address.java (serialVersionUID): Updated.tromey2003-11-091-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73398 138bc75d-0d04-0410-961f-82ee72b054a4
* Somehow this didnt got commited due to full hard disk.mkoch2003-10-291-6/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73040 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-29 Michael Koch <konqueror@gmx.de>mkoch2003-10-293-8/+3
| | | | | | | | | | | | | * java/net/InetAddress.java (equals): Remove redundant obj == null check. * java/net/SocketPermission.java (equals): Likewise. * java/net/URL.java (equals): Likewise. (getURLStreamHandler): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73034 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-13 Michael Koch <konqueror@gmx.de>mkoch2003-10-132-30/+46
| | | | | | | | | | | | | | | | | | | | | | | * java/net/JarURLConnection.java (jarFileURL): Added dcoumentation. (jarFileURLConnection): Reformated documentation. (entryName): Renamed from "element", documentation rewritten. (connectionCache): Renamed from "conn_cache", documentation reformated. (JarURLConnection): Check URL protocol. (getEntryName): Use entryName. (connect): Use connectionCache. (getInputStream): Use entryName, fixed comment. (getJarEntry): Use entryName. (getHeaders): Use entryName. * java/net/URLConnection.java (addRequestProperty): Fixed documentation. (setDefaultRequestProptery): Added comment that it does nothing since JDK 1.3. (getDefaultRequestProperty): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72420 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-13 Michael Koch <konqueror@gmx.de>mkoch2003-10-131-1/+1
| | | | | | | | | | | | | | | | * java/net/java/net/URLStreamHandlerFactory.java (createURLStreamHandler): Removed redundant "public" modifier. * java/sql/DatabaseMetaData.java: (DatabaseMetaData): Readded accidently removed "public" modifier. * java/sql/ParameterMetaData.java: (ParameterMetaData): Readded accidently removed "public" modifier. * java/sql/PreparedStatement.java: (PreparedStatement): Readded accidently removed "public" modifier. * java/sql/Ref.java: (Ref): Readded accidently removed "public" modifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72419 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-11 Michael Koch <konqueror@gmx.de>mkoch2003-10-115-18/+19
| | | | | | | | | | | | | * java/net/ContentHandlerFactory.java, java/net/DatagramSocketImplFactory.java, java/net/FileNameMap.java, java/net/SocketImplFactory.java, java/net/SocketOptions.java, java/net/URLStreamHandlerFactory.java: Removed redundant modifiers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72353 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-11 Michael Koch <konqueror@gmx.de>mkoch2003-10-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/nio/NIOSocket.java (setChannel): Initialize impl. * gnu/java/nio/ServerSocketChannelImpl.java (serverSocket): Made it a NIOServerSocket. (impl): Removed. (ServerSocketChannelImpl): Initialize only serverSocket. (initServerSocket): Removed. (getNativeFD): Rewritten. (implConfigureBlocking): Set socket timeout and removed comment. (accept): Rewritten. * gnu/java/nio/SocketChannelImpl.java (impl): New variable. (connected): Removed. (SocketChannelImpl): Initialize impl too. (getImpl): New method. (isConnected): Rewritten. (read): Rewritten, set position in buffer correctly. (write): Set position in buffer correctly. * java/net/ServerSocket.java (getImpl): New method. * gnu/java/nio/NIOServerSocket.java, gnu/java/nio/natNIOServerSocket.cc: New files. * gnu/java/nio/natServerSocketChannelImpl.cc: Removed. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOServerSocket.java. (nat_source_files): Removed gnu/java/nio/natServerSocketChannelImpl.cc and added gnu/java/nio/natNIOServerSocket.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72345 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-08 Michael Koch <konqueror@gmx.de>mkoch2003-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/gcj/protocol/core/Connection.java, gnu/gcj/protocol/core/CoreInputStream.java, gnu/gcj/protocol/core/Handler.java, gnu/gcj/protocol/core/natCoreInputStream.cc, gnu/gcj/protocol/file/Connection.java, gnu/gcj/protocol/file/Handler.java, gnu/gcj/protocol/gcjlib/Connection.java, gnu/gcj/protocol/gcjlib/Handler.java, gnu/gcj/protocol/http/Connection.java, gnu/gcj/protocol/http/Handler.java, gnu/gcj/protocol/jar/Connection.java, gnu/gcj/protocol/jar/Handler.java: Moved to gnu/java/net/protocol. * gnu/java/net/protocol/core/Connection.java, gnu/java/net/protocol/core/CoreInputStream.java, gnu/java/net/protocol/core/Handler.java, gnu/java/net/protocol/core/natCoreInputStream.cc, gnu/java/net/protocol/file/Connection.java, gnu/java/net/protocol/file/Handler.java, gnu/java/net/protocol/gcjlib/Connection.java, gnu/java/net/protocol/gcjlib/Handler.java, gnu/java/net/protocol/http/Connection.java, gnu/java/net/protocol/http/Handler.java, gnu/java/net/protocol/jar/Connection.java, gnu/java/net/protocol/jar/Handler.java: Moved from gnu/gcj/protocol. * gnu/gcj/runtime/FirstThread.java, java/net/URL.java: Use moved protocol handlers. * Makefile.am (ordinary_java_source_files): Moved files. (nat_source_files): Likewise. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72233 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Guilhem Lavaux <guilhem@kaffe.org>mkoch2003-10-022-13/+28
| | | | | | | | | | | | | * java/net/InetSocketAddress.java (InetSocketAddress): Made exception more clear. (equals): Handle case when addr is null. (toString): Likewise. * java/net/NetworkInterface.java (static): Load native library. (getNetworkInterfaces): Rewritten. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72047 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Michael Koch <konqueror@gmx.de>mkoch2003-10-023-18/+45
| | | | | | | | | | | | | | | | | | * java/net/InetAddress.java (zeros): Removed. (ANY_IF): Initalizie in static block. (static): Load library with native methods here and initialize ANY_IF. (isAnyLocalAddress): Check if equal to ANY_IF. (equals): Use addr directly instead of addr1. Simplify for loop. (toString): Rename "result" to "host" and add IP address allways. (getLocalHost): Merged documentation from classpath. * java/net/ServerSocket.java (ServerSocket): New package-private constructor used by java.nio. * java/net/URLConnection.java (getRequestProperties): Check if already connected. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72032 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed a little mistake that got into last commit.mkoch2003-10-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72025 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Michael Koch <konqueror@gmx.de>mkoch2003-10-021-7/+13
| | | | | | | | | | | * java/net/URL.java (DEFAULT_SEARCH_PATH): New static variable. (ph_cache): Made it a HashMap. (getURLStreamHandler): Rename propVal to ph_search_path and use DEFAULT_SEARCH_PATH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72023 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed little typo.mkoch2003-09-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71900 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-29 Michael Koch <konqueror@gmx.de>mkoch2003-09-291-13/+52
| | | | | | | | | | | | | | | | | * java/net/InetAddress.java: (isMulticastAddress): Dont use local variable to store address length. Let the compiler optimize this. (getHostName): Merged dcoumentation from classpath. (getAddress): Likewise. (getHostAddress): Likewise. (hashCode): Likewise. (equals): Likewise. (toString): Likewise. (getByName): Likewise. (getAllByName): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71899 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-29 Michael Koch <konqueror@gmx.de>mkoch2003-09-292-51/+59
| | | | | | | | * java/net/InetAddress.java, java/net/URL.java: Reformated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71897 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-27 Michael Koch <konqueror@gmx.de>mkoch2003-09-271-2/+7
| | | | | | | * java/net/URL.java (getURLStreamHandler): Compile fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-27 Michael Koch <konqueror@gmx.de>mkoch2003-09-271-21/+32
| | | | | | | | | | * java/net/URL.java (getURLStreamHandler): Check if we have to use cache before trying to retrieve handler from cache. Rename facName to clsName to match classpath more. Reformated some little pieces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71852 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-25 Michael Koch <konqueror@gmx.de>mkoch2003-09-252-20/+21
| | | | | | | | | | | | | | * java/net/InetAddress.java: Reorder imports, remove implementation comment. (isMulticastAddress): Merged documentation from classpath. * java/net/URLConnection.java (setRequestProperty): Check key for null, fix documentation. (adREquestProperty): Check key for null, remove wrong implementation and replace it with comment to overwrite this method in subclasses, fix documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71767 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-22 Michael Koch <konqueror@gmx.de>mkoch2003-09-221-53/+87
| | | | | | | | | * java/net/InetAddress.java: Moves around some code, reformats and adds documentation. No functional changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71649 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-22 Michael Koch <konqueror@gmx.de>mkoch2003-09-221-12/+17
| | | | | | | | | | | | * java/net/JarURLConnection.java (JarURLConnection): Modifed code to match classpath more, fixed comment. (getCertificates): Made it more error prone. (getMainAttributes): Likewise. (getAttributes): Implemented. (getManifest): Reformatted code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71643 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-19 Michael Koch <konqueror@gmx.de>mkoch2003-09-192-8/+6
| | | | | | | | | | * java/net/DatagramSocket.java (getLocalAddress): Renamed result variable to localAddr. * java/net/MulticastSocket.java: No need to import gnu.java.net.PlainDatagramSocketImpl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71561 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-18 Michael Koch <konqueror@gmx.de>mkoch2003-09-183-42/+15
| | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (ch): Removed. (receive): Use getChannel() instead of ch. (send): Likewise. (getChannel): Return null. * java/net/ServerSocket.java (ch): Removed. (setChannel): Removed. (implAccept): Use getChannel() instead of ch. (close): Likewise. (getChannel): Return null. * java/net/Socket.java (ch): Removed. (connect): Use getChannel() instead of ch. (setChannel): Removed. (getChannel): Return null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71516 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud