1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_net_URL__
|
5 |
|
|
#define __java_net_URL__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace net
|
17 |
|
|
{
|
18 |
|
|
class URI;
|
19 |
|
|
class URL;
|
20 |
|
|
class URLConnection;
|
21 |
|
|
class URLStreamHandler;
|
22 |
|
|
class URLStreamHandlerFactory;
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
class java::net::URL : public ::java::lang::Object
|
28 |
|
|
{
|
29 |
|
|
|
30 |
|
|
public:
|
31 |
|
|
URL(::java::lang::String *, ::java::lang::String *, jint, ::java::lang::String *);
|
32 |
|
|
URL(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
33 |
|
|
URL(::java::lang::String *, ::java::lang::String *, jint, ::java::lang::String *, ::java::net::URLStreamHandler *);
|
34 |
|
|
URL(::java::lang::String *);
|
35 |
|
|
URL(::java::net::URL *, ::java::lang::String *);
|
36 |
|
|
URL(::java::net::URL *, ::java::lang::String *, ::java::net::URLStreamHandler *);
|
37 |
|
|
private:
|
38 |
|
|
URL(::java::net::URL *, ::java::lang::String *, ::java::net::URLStreamHandler *, jboolean);
|
39 |
|
|
public:
|
40 |
|
|
jboolean equals(::java::lang::Object *);
|
41 |
|
|
::java::lang::Object * getContent();
|
42 |
|
|
::java::lang::Object * getContent(JArray< ::java::lang::Class * > *);
|
43 |
|
|
::java::lang::String * getFile();
|
44 |
|
|
::java::lang::String * getPath();
|
45 |
|
|
::java::lang::String * getAuthority();
|
46 |
|
|
::java::lang::String * getHost();
|
47 |
|
|
jint getPort();
|
48 |
|
|
jint getDefaultPort();
|
49 |
|
|
::java::lang::String * getProtocol();
|
50 |
|
|
::java::lang::String * getRef();
|
51 |
|
|
::java::lang::String * getUserInfo();
|
52 |
|
|
::java::lang::String * getQuery();
|
53 |
|
|
jint hashCode();
|
54 |
|
|
::java::net::URLConnection * openConnection();
|
55 |
|
|
::java::io::InputStream * openStream();
|
56 |
|
|
jboolean sameFile(::java::net::URL *);
|
57 |
|
|
public: // actually protected
|
58 |
|
|
void set(::java::lang::String *, ::java::lang::String *, jint, ::java::lang::String *, ::java::lang::String *);
|
59 |
|
|
void set(::java::lang::String *, ::java::lang::String *, jint, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
60 |
|
|
public:
|
61 |
|
|
static void setURLStreamHandlerFactory(::java::net::URLStreamHandlerFactory *);
|
62 |
|
|
::java::lang::String * toExternalForm();
|
63 |
|
|
::java::lang::String * toString();
|
64 |
|
|
private:
|
65 |
|
|
static ::java::net::URLStreamHandler * getURLStreamHandler(::java::lang::String *);
|
66 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
67 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
68 |
|
|
public:
|
69 |
|
|
::java::net::URI * toURI();
|
70 |
|
|
private:
|
71 |
|
|
static ::java::lang::String * DEFAULT_SEARCH_PATH;
|
72 |
|
|
static ::java::lang::ClassLoader * systemClassLoader;
|
73 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) protocol;
|
74 |
|
|
::java::lang::String * authority;
|
75 |
|
|
::java::lang::String * host;
|
76 |
|
|
::java::lang::String * userInfo;
|
77 |
|
|
jint port;
|
78 |
|
|
::java::lang::String * file;
|
79 |
|
|
::java::lang::String * ref;
|
80 |
|
|
jint hashCode__;
|
81 |
|
|
public: // actually package-private
|
82 |
|
|
::java::net::URLStreamHandler * ph;
|
83 |
|
|
private:
|
84 |
|
|
static ::java::net::URLStreamHandlerFactory * factory;
|
85 |
|
|
static const jlong serialVersionUID = -7627629688361524110LL;
|
86 |
|
|
static ::java::util::HashMap * ph_cache;
|
87 |
|
|
static jboolean cache_handlers;
|
88 |
|
|
public:
|
89 |
|
|
static ::java::lang::Class class$;
|
90 |
|
|
};
|
91 |
|
|
|
92 |
|
|
#endif // __java_net_URL__
|