org.ops4j.pax.runner.platform
Interface FilePathStrategy

All Known Implementing Classes:
AbsoluteFilePathStrategy, RelativeFilePathStrategy

public interface FilePathStrategy

Strategy to be used regarding file paths.

Since:
0.20.0, May 10, 2009
Author:
Alin Dreghiciu (adreghiciu@gmail.com)

Method Summary
 java.lang.String normalizeAsPath(java.io.File file)
          Returns the file in relative form (compared to working directory)
 java.lang.String normalizeAsUrl(java.io.File file)
          Returns the file in relative form as url (compared to working directory)
 java.lang.String normalizeAsUrl(java.net.URL url)
          Returns the url in relative form as url (compared to working directory).
 

Method Detail

normalizeAsPath

java.lang.String normalizeAsPath(java.io.File file)
Returns the file in relative form (compared to working directory)

Parameters:
file - file to normalize
Returns:
the file in relative form (compared to working directory)

normalizeAsUrl

java.lang.String normalizeAsUrl(java.io.File file)
Returns the file in relative form as url (compared to working directory)

Parameters:
file - file to normalize
Returns:
the file in relative form as url (compared to working directory)

normalizeAsUrl

java.lang.String normalizeAsUrl(java.net.URL url)
Returns the url in relative form as url (compared to working directory). The normalization is done only in case that the url is a file url.

Parameters:
url - url to normalize
Returns:
the url in relative form as url (compared to working directory)


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.