org.apache.commons.jci.utils
Class ConversionUtils

java.lang.Object
  extended by org.apache.commons.jci.utils.ConversionUtils

public final class ConversionUtils
extends Object

Mainly common path manipultation helper methods NOT FOR USE OUTSIDE OF JCI

Author:
tcurdt

Constructor Summary
ConversionUtils()
           
 
Method Summary
static String convertClassToResourcePath(String pName)
          Please do not use - internal org.my.Class -> org/my/Class.class
static String convertResourceToClassName(String pResourceName)
          Please do not use - internal org/my/Class.xxx -> org.my.Class
static String getResourceNameFromFileName(String pFileName)
          a/b/c.java -> a/b/c.java a\b\c.java -> a/b/c.java
static String relative(File base, File file)
           
static String stripExtension(String pResourceName)
          Please do not use - internal org/my/Class.xxx -> org/my/Class
static String toJavaCasing(String pName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionUtils

public ConversionUtils()
Method Detail

convertResourceToClassName

public static String convertResourceToClassName(String pResourceName)
Please do not use - internal org/my/Class.xxx -> org.my.Class


convertClassToResourcePath

public static String convertClassToResourcePath(String pName)
Please do not use - internal org.my.Class -> org/my/Class.class


stripExtension

public static String stripExtension(String pResourceName)
Please do not use - internal org/my/Class.xxx -> org/my/Class


toJavaCasing

public static String toJavaCasing(String pName)

relative

public static String relative(File base,
                              File file)

getResourceNameFromFileName

public static String getResourceNameFromFileName(String pFileName)
a/b/c.java -> a/b/c.java a\b\c.java -> a/b/c.java

Parameters:
pFileName -
Returns:
the converted name


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.