summaryrefslogtreecommitdiff
path: root/libjava/java/io/File.h
blob: b53f6ab7d02b68f9e943bf463d17acf4846b02f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_io_File__
#define __java_io_File__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace net
    {
        class URI;
        class URL;
    }
  }
}

class java::io::File : public ::java::lang::Object
{

  jlong attr(jint);
  jboolean _access(jint);
  jboolean _stat(jint);
  static void init_native();
public:
  virtual jboolean canRead();
  virtual jboolean canWrite();
  virtual jboolean canExecute();
private:
  jboolean performCreate();
public:
  virtual jboolean createNewFile();
private:
  jboolean performDelete();
public:
  virtual jboolean delete$();
  virtual jboolean equals(::java::lang::Object *);
private:
  jboolean internalExists();
public:
  virtual jboolean exists();
  File(::java::lang::String *);
private:
  ::java::lang::String * normalizePath(::java::lang::String *);
public:
  File(::java::lang::String *, ::java::lang::String *);
  File(::java::io::File *, ::java::lang::String *);
  File(::java::net::URI *);
  virtual ::java::lang::String * getAbsolutePath();
  virtual ::java::io::File * getAbsoluteFile();
  virtual ::java::lang::String * getCanonicalPath();
  virtual ::java::io::File * getCanonicalFile();
  virtual ::java::lang::String * getName();
  virtual ::java::lang::String * getParent();
  virtual ::java::io::File * getParentFile();
  virtual ::java::lang::String * getPath();
  virtual jint hashCode();
  virtual jboolean isAbsolute();
private:
  jboolean internalIsDirectory();
public:
  virtual jboolean isDirectory();
  virtual jboolean isFile();
  virtual jboolean isHidden();
  virtual jlong lastModified();
  virtual jlong length();
private:
  JArray< ::java::lang::Object * > * performList(::java::io::FilenameFilter *, ::java::io::FileFilter *, ::java::lang::Class *);
public:
  virtual JArray< ::java::lang::String * > * list(::java::io::FilenameFilter *);
  virtual JArray< ::java::lang::String * > * list();
  virtual JArray< ::java::io::File * > * listFiles();
  virtual JArray< ::java::io::File * > * listFiles(::java::io::FilenameFilter *);
  virtual JArray< ::java::io::File * > * listFiles(::java::io::FileFilter *);
  virtual ::java::lang::String * toString();
  virtual ::java::net::URI * toURI();
  virtual ::java::net::URL * toURL();
private:
  jboolean performMkdir();
public:
  virtual jboolean mkdir();
private:
  static jboolean mkdirs(::java::io::File *);
public:
  virtual jboolean mkdirs();
private:
  static ::java::lang::String * nextValue();
public:
  static ::java::io::File * createTempFile(::java::lang::String *, ::java::lang::String *, ::java::io::File *);
private:
  jboolean setFilePermissions(jboolean, jboolean, jint);
public:
  virtual jboolean setReadable(jboolean);
  virtual jboolean setReadable(jboolean, jboolean);
  virtual jboolean setWritable(jboolean);
  virtual jboolean setWritable(jboolean, jboolean);
  virtual jboolean setExecutable(jboolean);
  virtual jboolean setExecutable(jboolean, jboolean);
private:
  jboolean performSetReadOnly();
public:
  virtual jboolean setReadOnly();
private:
  static JArray< ::java::io::File * > * performListRoots();
public:
  static JArray< ::java::io::File * > * listRoots();
  static ::java::io::File * createTempFile(::java::lang::String *, ::java::lang::String *);
  virtual jint File$compareTo(::java::io::File *);
private:
  jboolean performRenameTo(::java::io::File *);
public:
  virtual jboolean renameTo(::java::io::File *);
private:
  jboolean performSetLastModified(jlong);
public:
  virtual jboolean setLastModified(jlong);
private:
  void checkWrite();
  void checkRead();
  void checkExec();
public:
  virtual void deleteOnExit();
private:
  void writeObject(::java::io::ObjectOutputStream *);
  void readObject(::java::io::ObjectInputStream *);
public:
  virtual jint compareTo(::java::lang::Object *);
private:
  static const jlong serialVersionUID = 301077366599181567LL;
  static const jint READ = 0;
  static const jint WRITE = 1;
  static const jint EXISTS = 2;
  static const jint EXEC = 3;
  static const jint DIRECTORY = 0;
  static const jint ISFILE = 1;
  static const jint ISHIDDEN = 2;
  static const jint MODIFIED = 0;
  static const jint LENGTH = 1;
public:
  static ::java::lang::String * separator;
private:
  static ::java::lang::String * dupSeparator;
public:
  static jchar separatorChar;
  static ::java::lang::String * pathSeparator;
  static jchar pathSeparatorChar;
public: // actually package-private
  static ::java::lang::String * tmpdir;
  static jint maxPathLen;
  static jboolean caseSensitive;
private:
  ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) path;
  static jlong counter;
public:
  static ::java::lang::Class class$;
};

#endif // __java_io_File__