Package org.vafer.jdeb.mapping

Examples of org.vafer.jdeb.mapping.PermMapper


    private int uid = 0;
    private int gid = 0;
    private int mode = UnixStat.LINK_FLAG | UnixStat.DEFAULT_LINK_PERM;

    DataProducer toDataProducer() {
        org.vafer.jdeb.mapping.Mapper mapper = new PermMapper(uid, gid, username, group, mode, mode, 0, null);
        return new DataProducerLink(name, target, symbolic, null, null, new org.vafer.jdeb.mapping.Mapper[]{mapper});
    }
View Full Code Here


    }

    public org.vafer.jdeb.mapping.Mapper createMapper() throws IOException {

        if ("perm".equalsIgnoreCase(mapperType)) {
            return new PermMapper(uid, gid, user, group, fileMode, dirMode, strip, prefix);
        }

        if ("ls".equalsIgnoreCase(mapperType)) {
            try {
                return new LsMapper(new FileInputStream(src));
View Full Code Here

                e.printStackTrace();
            }
        }

        if ("perm".equalsIgnoreCase(type)) {
            return new PermMapper(uid, gid, user, group, filemode, dirmode, strip, prefix);
        }

        /* NullMapper required for DataProducerPathTemplate */
        return NullMapper.INSTANCE;
    }
View Full Code Here

TOP

Related Classes of org.vafer.jdeb.mapping.PermMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.