Coverage Report - org.codehaus.plexus.archiver.filters.JarSecurityFileFilter
 
Classes in this File Line Coverage Branch Coverage Complexity
JarSecurityFileFilter
0 %
0/6
0 %
0/4
4
 
 1  
 package org.codehaus.plexus.archiver.filters;
 2  
 
 3  
 import java.io.InputStream;
 4  
 import org.codehaus.plexus.archiver.ArchiveFileFilter;
 5  
 import org.codehaus.plexus.util.SelectorUtils;
 6  
 
 7  
 /**
 8  
  * @deprecated Use {@link JarSecurityFileSelector}
 9  
  */
 10  
 @Deprecated
 11  0
 public class JarSecurityFileFilter
 12  
     implements ArchiveFileFilter
 13  
 {
 14  
 
 15  0
     public static final String[] SECURITY_FILE_PATTERNS = JarSecurityFileSelector.SECURITY_FILE_PATTERNS;
 16  
 
 17  
     @Override
 18  
     public boolean include( InputStream dataStream, String entryName )
 19  
     {
 20  0
         for ( String pattern : SECURITY_FILE_PATTERNS )
 21  
         {
 22  0
             if ( SelectorUtils.match( pattern, entryName ) )
 23  
             {
 24  0
                 return false;
 25  
             }
 26  
         }
 27  
 
 28  0
         return true;
 29  
     }
 30  
 
 31  
 }