public class GoogleCloudStorageStrings extends Object
Constructor and Description |
---|
GoogleCloudStorageStrings() |
Modifier and Type | Method and Description |
---|---|
static String |
matchListPrefix(String objectNamePrefix,
String delimiter,
String objectName)
Helper which mimics the GCS API behavior for taking an existing objectName and checking if it
matches a user-supplied prefix with an optional directory "delimiter".
|
public static String matchListPrefix(String objectNamePrefix, String delimiter, String objectName)
objectNamePrefix
- The prefix which objectName
must match to be returned in any
form. May be null; then an objectName will always be returned, just possibly truncated.delimiter
- The delimiter (usually a directory separator, e.g. '/') at which to truncate
the returned objectName after including the matched prefix. May be null for no truncation.objectName
- The name to attempt to match against the prefix and delimiter.Copyright © 2015. All rights reserved.