Coverage Report - org.codehaus.plexus.archiver.UnixStat
 
Classes in this File Line Coverage Branch Coverage Complexity
UnixStat
N/A
N/A
0
 
 1  
 /*
 2  
  * Copyright  2001,2004 The Apache Software Foundation
 3  
  *
 4  
  *  Licensed under the Apache License, Version 2.0 (the "License");
 5  
  *  you may not use this file except in compliance with the License.
 6  
  *  You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  *  Unless required by applicable law or agreed to in writing, software
 11  
  *  distributed under the License is distributed on an "AS IS" BASIS,
 12  
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  *  See the License for the specific language governing permissions and
 14  
  *  limitations under the License.
 15  
  *
 16  
  */
 17  
 package org.codehaus.plexus.archiver;
 18  
 
 19  
 /**
 20  
  * Constants from stat.h on Unix systems.
 21  
  *
 22  
  * from org.apache.ant.tools.zip.UnixStat v1.9
 23  
  */
 24  
 public interface UnixStat
 25  
 {
 26  
 
 27  
     /**
 28  
      * Bits used for permissions (and sticky bit)
 29  
      *
 30  
      * @since 1.1
 31  
      */
 32  
     int PERM_MASK = 07777;
 33  
 
 34  
     /**
 35  
      * Indicates symbolic links.
 36  
      *
 37  
      * @since 1.1
 38  
      */
 39  
     int LINK_FLAG = 0120000;
 40  
 
 41  
     /**
 42  
      * Indicates plain files.
 43  
      *
 44  
      * @since 1.1
 45  
      */
 46  
     int FILE_FLAG = 0100000;
 47  
 
 48  
     /**
 49  
      * Indicates directories.
 50  
      *
 51  
      * @since 1.1
 52  
      */
 53  
     int DIR_FLAG = 040000;
 54  
 
 55  
     // ----------------------------------------------------------
 56  
     // somewhat arbitrary choices that are quite common for shared
 57  
     // installations
 58  
     // -----------------------------------------------------------
 59  
     /**
 60  
      * Default permissions for symbolic links.
 61  
      *
 62  
      * @since 1.1
 63  
      */
 64  
     int DEFAULT_LINK_PERM = 0777;
 65  
 
 66  
     /**
 67  
      * Default permissions for directories.
 68  
      *
 69  
      * @since 1.1
 70  
      */
 71  
     int DEFAULT_DIR_PERM = 0755;
 72  
 
 73  
     /**
 74  
      * Default permissions for plain files.
 75  
      *
 76  
      * @since 1.1
 77  
      */
 78  
     int DEFAULT_FILE_PERM = 0644;
 79  
 
 80  
 }