Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.extensions.localfolder
Class PathUtil

java.lang.Object
  extended by com.esri.gpt.control.webharvest.extensions.localfolder.PathUtil

public class PathUtil
extends Object

Path util.


Constructor Summary
PathUtil()
           
 
Method Summary
static String sanitizeFileName(String name)
          Sanitizes file name.
static List<String> splitPath(File f)
          Splits path by separator.
static List<String> splitPath(String p)
          Splits path by separator
static List<String> splitPath(URL u)
          Splits path by separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtil

public PathUtil()
Method Detail

splitPath

public static List<String> splitPath(String p)
Splits path by separator

Parameters:
p - path
Returns:
list of elements

splitPath

public static List<String> splitPath(URL u)
Splits path by separator.

Parameters:
u - URL
Returns:
list of elements

splitPath

public static List<String> splitPath(File f)
Splits path by separator.

Parameters:
f - file
Returns:
list of elements

sanitizeFileName

public static String sanitizeFileName(String name)
Sanitizes file name.

Parameters:
name - arbitrary file name
Returns:
safe file name

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.