Class ExportFileNameEncoder


  • public class ExportFileNameEncoder
    extends Object
    This class is used to encode and decode file names added to or extracted from an export zip file.
    Author:
    tkafalas
    • Constructor Detail

      • ExportFileNameEncoder

        public ExportFileNameEncoder()
    • Method Detail

      • encodeZipFileName

        public static String encodeZipFileName​(String fileName)
        Encode a single file or folder name
        Parameters:
        fileName - As stored in repo
        Returns:
        fileName suitable for zip file or fileSystem
      • decodeZipFileName

        public static String decodeZipFileName​(String encodedFileName)
        Decode the encoded file or folder name back to the orignal repo name.
        Parameters:
        encodedFile - /folder Name
        Returns:
        original repo file/folder name
      • encodeZipPathName

        public static String encodeZipPathName​(String path)
        Encode a full path to a file or path to a folder
        Parameters:
        path -
        Returns:
        encode path
      • decodeZipPath

        public static String decodeZipPath​(String encodedPath)
        Decode the path back into the repo path
        Parameters:
        encodedPath -
        Returns:
        repo path