KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > mozilla > nsIFile


1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is Mozilla Communicator client code, released March 31, 1998.
15  *
16  * The Initial Developer of the Original Code is
17  * Netscape Communications Corporation.
18  * Portions created by Netscape are Copyright (C) 1998-1999
19  * Netscape Communications Corporation. All Rights Reserved.
20  *
21  * Contributor(s):
22  *
23  * IBM
24  * - Binding to permit interfacing between Mozilla and SWT
25  * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
26  *
27  * ***** END LICENSE BLOCK ***** */

28 package org.eclipse.swt.internal.mozilla;
29
30 public class nsIFile extends nsISupports {
31
32     static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 45;
33
34     public static final String JavaDoc NS_IFILE_IID_STR =
35         "c8c0a080-0868-11d3-915f-d9d889d48e3c";
36
37     public static final nsID NS_IFILE_IID =
38         new nsID(NS_IFILE_IID_STR);
39
40     public nsIFile(int /*long*/ address) {
41         super(address);
42     }
43
44     public static final int NORMAL_FILE_TYPE = 0;
45
46     public static final int DIRECTORY_TYPE = 1;
47
48     public int Append(int /*long*/ node) {
49         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), node);
50     }
51
52     public int AppendNative(int /*long*/ node) {
53         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), node);
54     }
55
56     public int Normalize() {
57         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress());
58     }
59
60     public int Create(int type, int permissions) {
61         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), type, permissions);
62     }
63
64     public int GetLeafName(int /*long*/ aLeafName) {
65         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aLeafName);
66     }
67
68     public int SetLeafName(int /*long*/ aLeafName) {
69         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aLeafName);
70     }
71
72     public int GetNativeLeafName(int /*long*/ aNativeLeafName) {
73         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aNativeLeafName);
74     }
75
76     public int SetNativeLeafName(int /*long*/ aNativeLeafName) {
77         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aNativeLeafName);
78     }
79
80     public int CopyTo(int /*long*/ newParentDir, int /*long*/ newName) {
81         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), newParentDir, newName);
82     }
83
84     public int CopyToNative(int /*long*/ newParentDir, int /*long*/ newName) {
85         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), newParentDir, newName);
86     }
87
88     public int CopyToFollowingLinks(int /*long*/ newParentDir, int /*long*/ newName) {
89         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), newParentDir, newName);
90     }
91
92     public int CopyToFollowingLinksNative(int /*long*/ newParentDir, int /*long*/ newName) {
93         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), newParentDir, newName);
94     }
95
96     public int MoveTo(int /*long*/ newParentDir, int /*long*/ newName) {
97         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), newParentDir, newName);
98     }
99
100     public int MoveToNative(int /*long*/ newParentDir, int /*long*/ newName) {
101         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), newParentDir, newName);
102     }
103
104     public int Remove(boolean recursive) {
105         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), recursive);
106     }
107
108     public int GetPermissions(int[] aPermissions) {
109         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aPermissions);
110     }
111
112     public int SetPermissions(int aPermissions) {
113         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aPermissions);
114     }
115
116     public int GetPermissionsOfLink(int[] aPermissionsOfLink) {
117         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aPermissionsOfLink);
118     }
119
120     public int SetPermissionsOfLink(int aPermissionsOfLink) {
121         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aPermissionsOfLink);
122     }
123
124     public int GetLastModifiedTime(long[] aLastModifiedTime) {
125         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aLastModifiedTime);
126     }
127
128     public int SetLastModifiedTime(long aLastModifiedTime) {
129         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aLastModifiedTime);
130     }
131
132     public int GetLastModifiedTimeOfLink(long[] aLastModifiedTimeOfLink) {
133         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aLastModifiedTimeOfLink);
134     }
135
136     public int SetLastModifiedTimeOfLink(long aLastModifiedTimeOfLink) {
137         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aLastModifiedTimeOfLink);
138     }
139
140     public int GetFileSize(long[] aFileSize) {
141         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aFileSize);
142     }
143
144     public int SetFileSize(long aFileSize) {
145         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aFileSize);
146     }
147
148     public int GetFileSizeOfLink(long[] aFileSizeOfLink) {
149         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aFileSizeOfLink);
150     }
151
152     public int GetTarget(int /*long*/ aTarget) {
153         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aTarget);
154     }
155
156     public int GetNativeTarget(int /*long*/ aNativeTarget) {
157         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aNativeTarget);
158     }
159
160     public int GetPath(int /*long*/ aPath) {
161         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aPath);
162     }
163
164     public int GetNativePath(int /*long*/ aNativePath) {
165         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aNativePath);
166     }
167
168     public int Exists(boolean[] _retval) {
169         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), _retval);
170     }
171
172     public int IsWritable(boolean[] _retval) {
173         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), _retval);
174     }
175
176     public int IsReadable(boolean[] _retval) {
177         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), _retval);
178     }
179
180     public int IsExecutable(boolean[] _retval) {
181         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), _retval);
182     }
183
184     public int IsHidden(boolean[] _retval) {
185         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), _retval);
186     }
187
188     public int IsDirectory(boolean[] _retval) {
189         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), _retval);
190     }
191
192     public int IsFile(boolean[] _retval) {
193         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), _retval);
194     }
195
196     public int IsSymlink(boolean[] _retval) {
197         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), _retval);
198     }
199
200     public int IsSpecial(boolean[] _retval) {
201         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), _retval);
202     }
203
204     public int CreateUnique(int type, int permissions) {
205         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), type, permissions);
206     }
207
208     public int Clone(int /*long*/[] _retval) {
209         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), _retval);
210     }
211
212     public int Equals(int /*long*/ inFile, boolean[] _retval) {
213         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), inFile, _retval);
214     }
215
216     public int Contains(int /*long*/ inFile, boolean recur, boolean[] _retval) {
217         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), inFile, recur, _retval);
218     }
219
220     public int GetParent(int /*long*/[] aParent) {
221         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aParent);
222     }
223
224     public int GetDirectoryEntries(int /*long*/[] aDirectoryEntries) {
225         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), aDirectoryEntries);
226     }
227 }
Popular Tags