public class GoogleCloudStorageStrings
extends java.lang.Object
| Constructor and Description |
|---|
GoogleCloudStorageStrings() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
matchListPrefix(java.lang.String objectNamePrefix,
java.lang.String delimiter,
java.lang.String objectName)
Helper that 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 java.lang.String matchListPrefix(java.lang.String objectNamePrefix,
java.lang.String delimiter,
java.lang.String objectName)
objectNamePrefix - The prefix that 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 © 2019. All rights reserved.