Class ExportFileNameEncoder
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.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 Summary
Constructors Constructor Description ExportFileNameEncoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decodeZipFileName(String encodedFileName)
Decode the encoded file or folder name back to the orignal repo name.static String
decodeZipPath(String encodedPath)
Decode the path back into the repo pathstatic String
encodeZipFileName(String fileName)
Encode a single file or folder namestatic String
encodeZipPathName(String path)
Encode a full path to a file or path to a folder
-
-
-
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
-
-