|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.format.util.Tools
public class Tools
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
log
|
static java.lang.String |
VMID
16 chars long VMID. |
| Constructor Summary | |
|---|---|
Tools()
|
|
| Method Summary | |
|---|---|
static java.util.List |
explode(java.lang.String content,
java.lang.String delimiter)
Explode the a string according to a delimiter. |
static java.lang.String |
replace(java.lang.String s,
java.lang.String source,
java.lang.String target)
Replace occurence in a string. |
static void |
safeClose(java.io.InputStream in)
Close a stream safely. |
static void |
safeClose(java.io.OutputStream out)
Close a stream safely. |
static void |
safeClose(java.io.Reader reader)
Close a stream safely. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger log
public static final java.lang.String VMID
| Constructor Detail |
|---|
public Tools()
| Method Detail |
|---|
public static java.lang.String replace(java.lang.String s,
java.lang.String source,
java.lang.String target)
s - the source stringsource - the replaced patterntarget - the replacement text
public static java.util.List explode(java.lang.String content,
java.lang.String delimiter)
content - the string to explode.delimiter - the delimiter
java.lang.NullPointerException - if content or delimiter is nullpublic static void safeClose(java.io.OutputStream out)
out - the stream to closepublic static void safeClose(java.io.InputStream in)
in - the stream to closepublic static void safeClose(java.io.Reader reader)
reader - the stream to close
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||