| OLD | NEW |
| (Empty) |
| 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 */ | |
| 24 public class FileInfo { | |
| 25 | |
| 26 /** Allocates memory and closes lingering handles in the specified pool */ | |
| 27 public long pool; | |
| 28 /** The bitmask describing valid fields of this apr_finfo_t structure | |
| 29 * including all available 'wanted' fields and potentially more */ | |
| 30 public int valid; | |
| 31 /** The access permissions of the file. Mimics Unix access rights. */ | |
| 32 public int protection; | |
| 33 /** The type of file. One of APR_REG, APR_DIR, APR_CHR, APR_BLK, APR_PIPE, | |
| 34 * APR_LNK or APR_SOCK. If the type is undetermined, the value is APR_NOFIL
E. | |
| 35 * If the type cannot be determined, the value is APR_UNKFILE. | |
| 36 */ | |
| 37 public int filetype; | |
| 38 /** The user id that owns the file */ | |
| 39 public int user; | |
| 40 /** The group id that owns the file */ | |
| 41 public int group; | |
| 42 /** The inode of the file. */ | |
| 43 public int inode; | |
| 44 /** The id of the device the file is on. */ | |
| 45 public int device; | |
| 46 /** The number of hard links to the file. */ | |
| 47 public int nlink; | |
| 48 /** The size of the file */ | |
| 49 public long size; | |
| 50 /** The storage size consumed by the file */ | |
| 51 public long csize; | |
| 52 /** The time the file was last accessed */ | |
| 53 public long atime; | |
| 54 /** The time the file was last modified */ | |
| 55 public long mtime; | |
| 56 /** The time the file was created, or the inode was last changed */ | |
| 57 public long ctime; | |
| 58 /** The pathname of the file (possibly unrooted) */ | |
| 59 public String fname; | |
| 60 /** The file's name (no path) in filesystem case */ | |
| 61 public String name; | |
| 62 /** The file's handle, if accessed (can be submitted to apr_duphandle) */ | |
| 63 public long filehand; | |
| 64 | |
| 65 } | |
| OLD | NEW |