public class FilePathRestrictions extends Object
Modifier and Type | Field and Description |
---|---|
char |
safeCharacter |
com.google.common.collect.ImmutableSet<Character> |
safeCharacters |
com.google.common.collect.ImmutableMap<Integer,Integer> |
transformationMap |
com.google.common.collect.ImmutableSetMultimap<Integer,Integer> |
transformationMatrix |
com.google.common.collect.ImmutableSet<String> |
unsafeNames |
com.google.common.collect.ImmutableSet<String> |
unsafePrefixes |
com.google.common.collect.ImmutableSet<String> |
unsafeSuffixes |
Constructor and Description |
---|
FilePathRestrictions(com.google.common.collect.SetMultimap<Integer,Integer> transformationMatrix,
Set<String> unsafePrefixes,
Set<String> unsafeSuffixes,
Set<String> unsafeNames,
Set<Character> safeCharacters)
Construct a set of rules by which local files may not be named on the file-system.
|
Modifier and Type | Method and Description |
---|---|
static FilePathRestrictions |
combineFilePathRestrictions(FilePathRestrictions... rules)
Combine sets of rules to form a set that satisfies them all and that
include transformations away from Unicode control characters.
|
public final com.google.common.collect.ImmutableSetMultimap<Integer,Integer> transformationMatrix
public final com.google.common.collect.ImmutableSet<String> unsafePrefixes
public final com.google.common.collect.ImmutableSet<String> unsafeSuffixes
public final com.google.common.collect.ImmutableSet<String> unsafeNames
public final com.google.common.collect.ImmutableSet<Character> safeCharacters
public final char safeCharacter
public FilePathRestrictions(com.google.common.collect.SetMultimap<Integer,Integer> transformationMatrix, Set<String> unsafePrefixes, Set<String> unsafeSuffixes, Set<String> unsafeNames, Set<Character> safeCharacters)
transformationMatrix
- how to make specific characters safe, may be nullunsafePrefixes
- which name prefixes are proscribed, may be nullunsafeSuffixes
- which name suffixes are proscribed, may be nullunsafeNames
- which names are proscribed, may be nullsafeCharacters
- safe characters that may be used in making file names safe, may not be nullpublic static FilePathRestrictions combineFilePathRestrictions(FilePathRestrictions... rules)
rules
- at least one set of rules
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.