KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tomcat > jni > FileInfo


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.tomcat.jni;
19
20 /** Fileinfo
21  *
22  * @author Mladen Turk
23  * @version $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
24  */

25
26 public class FileInfo {
27
28     /** Allocates memory and closes lingering handles in the specified pool */
29     public long pool;
30     /** The bitmask describing valid fields of this apr_finfo_t structure
31      * including all available 'wanted' fields and potentially more */

32     public int valid;
33     /** The access permissions of the file. Mimics Unix access rights. */
34     public int protection;
35     /** The type of file. One of APR_REG, APR_DIR, APR_CHR, APR_BLK, APR_PIPE,
36      * APR_LNK or APR_SOCK. If the type is undetermined, the value is APR_NOFILE.
37      * If the type cannot be determined, the value is APR_UNKFILE.
38      */

39     public int filetype;
40     /** The user id that owns the file */
41     public int user;
42     /** The group id that owns the file */
43     public int group;
44     /** The inode of the file. */
45     public int inode;
46     /** The id of the device the file is on. */
47     public int device;
48     /** The number of hard links to the file. */
49     public int nlink;
50     /** The size of the file */
51     public long size;
52     /** The storage size consumed by the file */
53     public long csize;
54     /** The time the file was last accessed */
55     public long atime;
56     /** The time the file was last modified */
57     public long mtime;
58     /** The time the file was created, or the inode was last changed */
59     public long ctime;
60     /** The pathname of the file (possibly unrooted) */
61     public String JavaDoc fname;
62     /** The file's name (no path) in filesystem case */
63     public String JavaDoc name;
64     /** The file's handle, if accessed (can be submitted to apr_duphandle) */
65     public long filehand;
66
67 }
68
Popular Tags