|
eXo JCR :: Component :: Webdav Service 1.15.4-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.webdav.util.TextUtil
public class TextUtil
Created by The eXo Platform SARL Author : Vitaly Guly.
| Field Summary | |
|---|---|
static char[] |
hexTable
Hexademical characters. |
static BitSet |
URISave
|
static BitSet |
URISaveEx
|
| Constructor Summary | |
|---|---|
TextUtil()
|
|
| Method Summary | |
|---|---|
static String |
escape(String string,
char escape,
boolean isPath)
Escapes string using escape symbol. |
static String |
getExtension(String filename)
Extracts the extension of the file. |
static boolean |
isMediaFile(String mimeType)
Checks if Mime-Type is media mime type. |
static String |
nameOnly(String path)
Cuts the current name from the path. |
static String |
parentPath(String path)
|
static String |
pathOnly(String path)
Cuts the path from string. |
static String |
relativizePath(String path)
Creates relative path from string. |
static String |
unescape(String string,
char escape)
Unescapes string using escape symbol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static BitSet URISave
public static BitSet URISaveEx
public static final char[] hexTable
| Constructor Detail |
|---|
public TextUtil()
| Method Detail |
|---|
public static String unescape(String string,
char escape)
string - stringescape - escape symbol
public static String escape(String string,
char escape,
boolean isPath)
string - stringescape - escape symbolisPath - if the string is path
public static String relativizePath(String path)
path - path
public static String pathOnly(String path)
path - full path
public static String parentPath(String path)
path - path
public static String nameOnly(String path)
path - path
public static boolean isMediaFile(String mimeType)
mimeType - Mime-Type
public static String getExtension(String filename)
filename - file name
|
eXo JCR :: Component :: Webdav Service 1.15.4-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||