Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.StringMapper


    public EnumerIterator filter(String path, Date from, Date to)
            throws IOException {
        List entries = new ArrayList();
        String[] prefixes = getPrefixes();
        StringMapper pathRemapper = getPathRemapper(prefixes);

        for (int i = 0; i < prefixes.length; i++) {
            String onePrefix = prefixes[i];

            // find any imported entries for the given prefix
View Full Code Here


            "redact-line-filter");
    }

    public Reader filter(RedactFilterData data, String filename, Reader contents)
            throws IOException {
        StringMapper filter = getFilter(filename);

        if (filter == null)
            return contents;
        else
            return new LineFilteringReader(contents, filter);
View Full Code Here

        else
            return new LineFilteringReader(contents, filter);
    }

    private StringMapper getFilter(String filename) {
        StringMapper result = null;
        for (LineBasedFilter f : lineFilters) {
            if (f.shouldFilter(filename)) {
                if (result == null)
                    result = f;
                else
View Full Code Here

    private class PublicValue implements StringMapper {

        public String getString(String str) {
            if (translation instanceof StringMapper) {
                StringMapper sm = (StringMapper) translation;
                str = sm.getString(str);
            }
           
            str = scrubForAllowedValue(str);
           
            if (StringUtils.hasValue(str))
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.StringMapper

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.