111 |
* Index of fragment component in parsed URI. |
* Index of fragment component in parsed URI. |
112 |
*/ |
*/ |
113 |
private static final int FRAGMENT_GROUP = 10; |
private static final int FRAGMENT_GROUP = 10; |
114 |
private String scheme; |
private transient String scheme; |
115 |
private String rawSchemeSpecificPart; |
private transient String rawSchemeSpecificPart; |
116 |
private String schemeSpecificPart; |
private transient String schemeSpecificPart; |
117 |
private String rawAuthority; |
private transient String rawAuthority; |
118 |
private String authority; |
private transient String authority; |
119 |
private String rawUserInfo; |
private transient String rawUserInfo; |
120 |
private String userInfo; |
private transient String userInfo; |
121 |
private String rawHost; |
private transient String rawHost; |
122 |
private String host; |
private transient String host; |
123 |
private int port; |
private transient int port; |
124 |
private String rawPath; |
private transient String rawPath; |
125 |
private String path; |
private transient String path; |
126 |
private String rawQuery; |
private transient String rawQuery; |
127 |
private String query; |
private transient String query; |
128 |
private String rawFragment; |
private transient String rawFragment; |
129 |
private String fragment; |
private transient String fragment; |
130 |
|
private String string; |
131 |
|
|
132 |
private void readObject(ObjectInputStream is) |
private void readObject(ObjectInputStream is) |
133 |
throws ClassNotFoundException, IOException |
throws ClassNotFoundException, IOException |
134 |
{ |
{ |
135 |
|
this.string = (String) is.readObject(); |
136 |
|
try |
137 |
|
{ |
138 |
|
parseURI(this.string); |
139 |
|
} |
140 |
|
catch (URISyntaxException x) |
141 |
|
{ |
142 |
|
// Should not happen. |
143 |
|
throw new RuntimeException(x); |
144 |
|
} |
145 |
} |
} |
146 |
|
|
147 |
private void writeObject(ObjectOutputStream is) throws IOException |
private void writeObject(ObjectOutputStream os) throws IOException |
148 |
{ |
{ |
149 |
|
if (string == null) |
150 |
|
string = toString(); |
151 |
|
os.writeObject(string); |
152 |
} |
} |
153 |
|
|
154 |
private static String getURIGroup(Matcher match, int group) |
private static String getURIGroup(Matcher match, int group) |
376 |
*/ |
*/ |
377 |
public URI(String str) throws URISyntaxException |
public URI(String str) throws URISyntaxException |
378 |
{ |
{ |
379 |
|
this.string = str; |
380 |
parseURI(str); |
parseURI(str); |
381 |
} |
} |
382 |
|
|