org.vafer.jdeb.mapping
Class PermMapper

java.lang.Object
  extended by org.vafer.jdeb.mapping.PermMapper
All Implemented Interfaces:
Mapper

public final class PermMapper
extends Object
implements Mapper

Applies a uniform set of permissions and ownership to all entries.

Author:
Bryan Sant

Constructor Summary
PermMapper(int uid, int gid, String user, String group, int fileMode, int dirMode, int strip, String prefix)
           
PermMapper(int uid, int gid, String user, String group, String fileMode, String dirMode, int strip, String prefix)
           
PermMapper(int strip, String prefix)
           
PermMapper(String user, String group, String fileMode, String dirMode, int strip, String prefix)
           
 
Method Summary
 org.apache.tools.tar.TarEntry map(org.apache.tools.tar.TarEntry entry)
           
static int toMode(String modeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermMapper

public PermMapper(int strip,
                  String prefix)

PermMapper

public PermMapper(int uid,
                  int gid,
                  String user,
                  String group,
                  int fileMode,
                  int dirMode,
                  int strip,
                  String prefix)

PermMapper

public PermMapper(int uid,
                  int gid,
                  String user,
                  String group,
                  String fileMode,
                  String dirMode,
                  int strip,
                  String prefix)

PermMapper

public PermMapper(String user,
                  String group,
                  String fileMode,
                  String dirMode,
                  int strip,
                  String prefix)
Method Detail

toMode

public static int toMode(String modeString)

map

public org.apache.tools.tar.TarEntry map(org.apache.tools.tar.TarEntry entry)
Specified by:
map in interface Mapper


Copyright © 2012. All Rights Reserved.