public final class StringPaths extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
fromComponents(String bucketName,
String objectName)
Helper for standardizing the way various human-readable messages in logs/exceptions that refer
to a bucket/object pair.
|
static boolean |
isDirectoryPath(String path)
Indicates whether the given object name looks like a directory path.
|
static String |
toFilePath(String path)
Converts the given object name to look like a file path.
|
public static String fromComponents(String bucketName, String objectName)
public static boolean isDirectoryPath(String path)
path - Name of the object to inspect.public static String toFilePath(String path)
If the object name is null or empty, it is returned as-is.
path - Name of the object to inspect.Copyright © 2022. All rights reserved.