public final class FilenameSplitExtension extends Object
A period between the base and the extension exists in the filename, but this belongs to neither component.
Constructor and Description |
---|
FilenameSplitExtension(String pathWithoutExtension,
Optional<String> extension)
Creates from a path without an extension.
|
Modifier and Type | Method and Description |
---|---|
String |
combineWithSuffix(String suffix)
Inserts a suffix after the base-name, but before the extension, immutably.
|
boolean |
equals(Object o) |
String |
getBaseName()
The part of the filename without an extension.
|
Optional<String> |
getExtension()
The extension of the filename.
|
int |
hashCode() |
String |
toString() |
public String combineWithSuffix(String suffix)
suffix
- the suffix to insertpublic String getBaseName()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.