NamePure - ViiSE/papka GitHub Wiki

NamePure

NamePure - implementation for filename with clearing bad chars.

Constructors

public NamePure(String fullName)

String fullName - full filename.

Example

String badName = "/music/op*?\"<>|+\u0000us/opus111.mp3";
Name name = new NamePure(badName);
System.out.println("Short: " + name.shortName());
System.out.println("Full: " + name.fullName());
Output:

Short: opus111.mp3
Full: /music/opus/opus111.mp3

Links

Name - implementable interface.