eXo JCR :: Open Office WebDav plugin 1.15.8-GA

org.exoplatform.applications.ooplugin.utils
Class TextUtils

java.lang.Object
  extended by org.exoplatform.applications.ooplugin.utils.TextUtils

public class TextUtils
extends Object

Created by The eXo Platform SAS.

Author:
Dmytro Katayev

Field Summary
static char[] hexTable
           
static BitSet URISave
           
static BitSet URISaveEx
           
 
Constructor Summary
TextUtils()
           
 
Method Summary
static String DecodePath(String path)
           
static String EncodePath(String path)
           
static String Escape(String string, char escape, boolean isPath)
           
static String FilterFileName(String filename)
           
static String getMimeType(String type)
           
static Document getXmlFromBytes(byte[] xmlBytes)
           
static String UnEscape(String string, char escape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hexTable

public static final char[] hexTable

URISave

public static BitSet URISave

URISaveEx

public static BitSet URISaveEx
Constructor Detail

TextUtils

public TextUtils()
Method Detail

getXmlFromBytes

public static Document getXmlFromBytes(byte[] xmlBytes)
                                throws Exception
Throws:
Exception

Escape

public static String Escape(String string,
                            char escape,
                            boolean isPath)

UnEscape

public static String UnEscape(String string,
                              char escape)

getMimeType

public static String getMimeType(String type)

EncodePath

public static String EncodePath(String path)
                         throws Exception
Throws:
Exception

DecodePath

public static String DecodePath(String path)
                         throws Exception
Throws:
Exception

FilterFileName

public static String FilterFileName(String filename)

eXo JCR :: Open Office WebDav plugin 1.15.8-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.