public class OwFileUtil extends Object
Utility class for file access and manipulation.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwFileUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getFileDir(String filepath_p)
get the file directory without name of the given path
e.g.: c:\temp\myfile.txt
=> c:\temp\
|
static String |
getFileExt(String filepath_p)
get the file extension of the given path
e.g.: c:\temp\myfile.txt
=> myfile.txt
|
static String |
getFileName(String filepath_p)
get the file title with extension of the given path
e.g.: c:\temp\myfile.txt
=> myfile.txt
|
static String |
getFileTitle(String filepath_p)
get the file title without extension of the given path
e.g.: c:\temp\myfile.txt
=> myfile
|
static String |
replaceExtension(String filepath_p,
String newextension_p)
replace extension of the given filepath
e.g.: c:\temp\myfile.txt,properties
=> c:\temp\myfile.properties
|
public static String replaceExtension(String filepath_p, String newextension_p)
filepath_p
- public static String getFileTitle(String filepath_p)
filepath_p
- public static String getFileName(String filepath_p)
filepath_p
- public static String getFileExt(String filepath_p)
filepath_p
- Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.