public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static void |
closeEL(InputStream is)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().closeSilent
(InputStream is)
close inputstream without a Exception
|
static void |
closeEL(InputStream is,
OutputStream os)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().closeSilent
(InputStream is,OutputStream os)
close inputstream without a Exception
|
static void |
closeEL(OutputStream os)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().closeSilent
(InputStream is,OutputStream os)
close outputstream without a Exception
|
static void |
closeEL(Reader r)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().closeSilent(Reader
r)
close reader without a Exception
|
static void |
closeEL(Writer w)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().closeSilent(Writer
w)
close reader without a Exception
|
static void |
closeEL(ZipFile zf)
Deprecated.
no replacement
|
static void |
copy(InputStream in,
OutputStream out)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().copy(...)
copy a inputstream to a outputstream
|
static void |
copy(InputStream in,
OutputStream out,
boolean closeIS,
boolean closeOS) |
static void |
copy(Resource in,
Resource out)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().copy(...)
|
static void |
delete(File f) |
static String |
first(String str,
String delimiter)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getStringUtil().first(...);
|
static File |
getCanonicalFileEL(File file)
Deprecated.
no replacement
Returns the canonical form of this abstract pathname.
|
static String |
getContentAsString(InputStream is,
String charset)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().toString(...)
|
static File |
getHomeDirectory()
Deprecated.
use instead
CFMLEngineFactory.getInstance().getResourceUtil().
getHomeDirectory()
returns the Home Directory of the System
|
static File |
getSystemDirectory()
Deprecated.
use instead
CFMLEngineFactory.getInstance().getResourceUtil().
getSystemDirectory()
|
static File |
getTempDirectory()
Deprecated.
use instead
CFMLEngineFactory.getInstance().getResourceUtil().
getTempDirectory()
returns the Temp Directory of the System
|
static boolean |
hasUpperCase(String str)
Deprecated.
deprecated with no replacement
|
static boolean |
isEmpty(String str)
check if string is empty (null or "")
|
static boolean |
isEmpty(String str,
boolean trim)
check if string is empty (null or "")
|
static boolean |
isNewerThan(org.osgi.framework.Version left,
org.osgi.framework.Version right)
check left value against right value
|
static String |
last(String str,
String delimiter)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getStringUtil().last(...);
|
static int |
length(String str)
Deprecated.
no replacement
|
static String |
parsePlaceHolder(String path)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getResourceUtil().
parsePlaceHolder(...)
replace path placeholder with the real path, placeholders are
[{temp-directory},{system-directory},{home-directory}]
|
static String |
removeQuotes(String str,
boolean trim)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getStringUtil().removeQuotes
(...);
|
static String |
replace(String str,
String sub1,
String sub2,
boolean onlyFirst)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getStringUtil().replace(...)
|
static boolean |
toBooleanValue(String str)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getCastUtil().toBooleanValue
(...)
|
static BufferedInputStream |
toBufferedInputStream(InputStream is)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getIOUtil().
toBufferedInputStream
(...)
|
static BufferedOutputStream |
toBufferedOutputStream(OutputStream os)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getIOUtil().
toBufferedOutputStream
(...)
|
static String |
toHTTPTimeString()
Deprecated.
deprecated with no replacement
|
static String |
toHTTPTimeString(Date date)
Deprecated.
deprecated with no replacement
|
static String |
toString(InputStream is)
Deprecated.
use instead
CFMLEngineFactory.getInstance.getIOUtil().toString
(InputStream is, Charset cs)
read String data from a InputStream and returns it as String
Object
|
static String |
toVariableName(String str,
boolean addIdentityNumber)
Deprecated.
use instead
CFMLEngineFactory.getInstance().getStringUtil().
toVariableName
(...)
|
public static final void copy(InputStream in, OutputStream out) throws IOException
in
- out
- IOException
public static final void copy(InputStream in, OutputStream out, boolean closeIS, boolean closeOS) throws IOException
IOException
public static String toString(InputStream is) throws IOException
is
- InputStream to read data from.IOException
public static boolean toBooleanValue(String str) throws IOException
str
- IOException
public static void closeEL(InputStream is, OutputStream os)
is
- os
- public static void closeEL(ZipFile zf)
zf
- public static void closeEL(InputStream is)
is
- public static void closeEL(Reader r)
r
- public static void closeEL(Writer w)
w
- public static void closeEL(OutputStream os)
os
- public static String getContentAsString(InputStream is, String charset) throws IOException, PageException
is
- inputStream to get content Fromcharset
- IOException
PageException
public static boolean isEmpty(String str)
str
- public static boolean isEmpty(String str, boolean trim)
str
- public static int length(String str)
str
- public static String replace(String str, String sub1, String sub2, boolean onlyFirst)
str
- String to work withsub1
- value to replacesub2
- replacementonlyFirst
- replace only first or allpublic static String parsePlaceHolder(String path)
path
- public static File getTempDirectory()
public static File getHomeDirectory()
public static File getSystemDirectory()
public static File getCanonicalFileEL(File file)
file
- file to get canoncial form from itSecurityException
- If a required system property value cannot be accessed.public static String toHTTPTimeString(Date date)
date
- public static String toHTTPTimeString()
public static boolean hasUpperCase(String str)
public static BufferedInputStream toBufferedInputStream(InputStream is)
is
- public static BufferedOutputStream toBufferedOutputStream(OutputStream os)
os
- public static void copy(Resource in, Resource out) throws IOException
in
- out
- IOException
public static String toVariableName(String str, boolean addIdentityNumber)
str
- addIdentityNumber
- public static String first(String str, String delimiter)
str
- delimiter
- public static String last(String str, String delimiter)
str
- delimiter
- public static String removeQuotes(String str, boolean trim)
str
- trim
- public static void delete(File f)
public static boolean isNewerThan(org.osgi.framework.Version left, org.osgi.framework.Version right)
left
- right
- Copyright © 2016. All rights reserved.