Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1701deb2
Commit
1701deb2
authored
Apr 20, 2005
by
Andrew John Hughes
Committed by
Michael Koch
Apr 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2005-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/net/URL.java: (toURI()): Implemented. From-SVN: r98437
parent
f12b785d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
libjava/ChangeLog
+5
-0
libjava/java/net/URL.java
+17
-0
No files found.
libjava/ChangeLog
View file @
1701deb2
2005
-
04
-
20
Andrew
John
Hughes
<
gnu_andrew
@
member
.
fsf
.
org
>
*
java
/
net
/
URL
.
java
:
(
toURI
()):
Implemented
.
2005
-
04
-
19
Michael
Koch
<
konqueror
@
gmx
.
de
>
2005
-
04
-
19
Michael
Koch
<
konqueror
@
gmx
.
de
>
*
java
/
net
/
InetAddress
.
java
*
java
/
net
/
InetAddress
.
java
...
...
libjava/java/net/URL.java
View file @
1701deb2
...
@@ -953,4 +953,21 @@ public final class URL implements Serializable
...
@@ -953,4 +953,21 @@ public final class URL implements Serializable
{
{
oos
.
defaultWriteObject
();
oos
.
defaultWriteObject
();
}
}
/**
* Returns the equivalent <code>URI</code> object for this <code>URL</code>.
* This is the same as calling <code>new URI(this.toString())</code>.
* RFC2396-compliant URLs are guaranteed a successful conversion to
* a <code>URI</code> instance. However, there are some values which
* form valid URLs, but which do not also form RFC2396-compliant URIs.
*
* @throws URISyntaxException if this URL is not RFC2396-compliant,
* and thus can not be successfully converted to a URI.
*/
public
URI
toURI
()
throws
URISyntaxException
{
return
new
URI
(
toString
());
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment