public class GoogleCloudStorageStrings extends Object
| Constructor and Description |
|---|
GoogleCloudStorageStrings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
matchListPrefix(String objectNamePrefix,
String objectName,
ListObjectOptions listOptions)
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 String matchListPrefix(String objectNamePrefix, String objectName, ListObjectOptions listOptions)
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.objectName - The name to attempt to match against the prefix and delimiter.listOptions - List object options to match list prefix.Copyright © 2022. All rights reserved.