soaprmi.util
Class Util

java.lang.Object
  extended bysoaprmi.util.Util

public class Util
extends java.lang.Object

The bag for useful staff.

Version:
$Revision: 1.8 $
Author:
Aleksander Slominski

Constructor Summary
Util()
           
 
Method Summary
static boolean equalsArrays(java.lang.Object s1, java.lang.Object s2)
           
static boolean equalsRef(java.lang.Object s1, java.lang.Object s2)
           
static java.lang.String getContentTypeCharset(java.lang.String contentType)
           
static java.lang.String getContentTypeCharset(java.lang.String contentType, java.lang.String defaultCharset)
           
static org.gjt.xpp.XmlPullParserFactory getPullParserFactory()
           
static java.io.InputStream inputStreamFor(java.lang.Class klass, java.lang.String location)
          Try to get input stream to load from location by checking class loader, files & URLs.
static java.lang.String loadAsString(java.lang.Class klass, java.lang.String location)
           
static java.lang.Class loadClass(java.lang.String klassName)
           
static java.io.Reader readerFor(java.lang.Class klass, java.lang.String location)
           
static void readXMLEscapedString(java.io.Writer out, java.lang.String s)
           
static void setClassloader(java.lang.ClassLoader classLoaderToUse)
           
static void setPullParserFactory(org.gjt.xpp.XmlPullParserFactory userFactory)
           
static void writeXMLEscapedString(java.io.Writer out, java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

equalsRef

public static final boolean equalsRef(java.lang.Object s1,
                                      java.lang.Object s2)

equalsArrays

public static final boolean equalsArrays(java.lang.Object s1,
                                         java.lang.Object s2)

setPullParserFactory

public static void setPullParserFactory(org.gjt.xpp.XmlPullParserFactory userFactory)

getPullParserFactory

public static org.gjt.xpp.XmlPullParserFactory getPullParserFactory()

setClassloader

public static void setClassloader(java.lang.ClassLoader classLoaderToUse)
                           throws java.lang.Exception
Throws:
java.lang.Exception

loadClass

public static java.lang.Class loadClass(java.lang.String klassName)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

writeXMLEscapedString

public static final void writeXMLEscapedString(java.io.Writer out,
                                               java.lang.String s)
                                        throws java.io.IOException
Throws:
java.io.IOException

readXMLEscapedString

public static final void readXMLEscapedString(java.io.Writer out,
                                              java.lang.String s)
                                       throws java.io.IOException
Throws:
java.io.IOException

getContentTypeCharset

public static java.lang.String getContentTypeCharset(java.lang.String contentType)

getContentTypeCharset

public static java.lang.String getContentTypeCharset(java.lang.String contentType,
                                                     java.lang.String defaultCharset)

inputStreamFor

public static java.io.InputStream inputStreamFor(java.lang.Class klass,
                                                 java.lang.String location)
                                          throws java.io.IOException
Try to get input stream to load from location by checking class loader, files & URLs.

Throws:
java.io.IOException

readerFor

public static java.io.Reader readerFor(java.lang.Class klass,
                                       java.lang.String location)
                                throws java.io.IOException
Throws:
java.io.IOException

loadAsString

public static java.lang.String loadAsString(java.lang.Class klass,
                                            java.lang.String location)
                                     throws java.io.IOException
Throws:
java.io.IOException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.