public class FilePathRestrictions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
char |
safeCharacter |
com.google.common.collect.ImmutableSet<java.lang.Character> |
safeCharacters |
com.google.common.collect.ImmutableMap<java.lang.Integer,java.lang.Integer> |
transformationMap |
com.google.common.collect.ImmutableSetMultimap<java.lang.Integer,java.lang.Integer> |
transformationMatrix |
com.google.common.collect.ImmutableSet<java.lang.String> |
unsafeNames |
com.google.common.collect.ImmutableSet<java.lang.String> |
unsafePrefixes |
com.google.common.collect.ImmutableSet<java.lang.String> |
unsafeSuffixes |
Constructor and Description |
---|
FilePathRestrictions(com.google.common.collect.SetMultimap<java.lang.Integer,java.lang.Integer> transformationMatrix,
java.util.Set<java.lang.String> unsafePrefixes,
java.util.Set<java.lang.String> unsafeSuffixes,
java.util.Set<java.lang.String> unsafeNames,
java.util.Set<java.lang.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<java.lang.Integer,java.lang.Integer> transformationMatrix
public final com.google.common.collect.ImmutableSet<java.lang.String> unsafePrefixes
public final com.google.common.collect.ImmutableSet<java.lang.String> unsafeSuffixes
public final com.google.common.collect.ImmutableSet<java.lang.String> unsafeNames
public final com.google.common.collect.ImmutableSet<java.lang.Character> safeCharacters
public final char safeCharacter
public final com.google.common.collect.ImmutableMap<java.lang.Integer,java.lang.Integer> transformationMap
public FilePathRestrictions(com.google.common.collect.SetMultimap<java.lang.Integer,java.lang.Integer> transformationMatrix, java.util.Set<java.lang.String> unsafePrefixes, java.util.Set<java.lang.String> unsafeSuffixes, java.util.Set<java.lang.String> unsafeNames, java.util.Set<java.lang.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.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.