Converts the segment to another path type.
The segment name will be re-validated during the conversion. The separator, if any, will be adopted or replaced by the default separator of the target path type.
A PathValidationException is thrown if the segment name cannot be represented in the target path format.
See Implementation
Converts the segment to another path type.
The segment name will be re-validated during the conversion. The separator, if any, will be adopted or replaced by the default separator of the target path type.