NetKernel APIs


com.ten60.netkernel.util
Class Utils

java.lang.Object
  extended bycom.ten60.netkernel.util.Utils

public class Utils
extends Object

General utility methods


Constructor Summary
Utils()
           
 
Method Summary
static void appendUnreservedURIChar(StringBuffer sb, String aURI)
           
static Object constructFromXML(XMLReadable aConfig)
           
static String decode(String aInput)
           
static String fixSlash(String aURI)
          ensure windows style slashes become URI style slashes
static URL getResource(String aPath, String aBasePath, ClassLoader aClassLoader)
          ffcpl light
static void pipe(InputStream aInput, OutputStream aOutput)
          copy an input stream to an outputsteam and close streams when finished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getResource

public static URL getResource(String aPath,
                              String aBasePath,
                              ClassLoader aClassLoader)
ffcpl light


pipe

public static void pipe(InputStream aInput,
                        OutputStream aOutput)
                 throws IOException
copy an input stream to an outputsteam and close streams when finished

Throws:
IOException - if there are any problems

fixSlash

public static String fixSlash(String aURI)
ensure windows style slashes become URI style slashes


appendUnreservedURIChar

public static void appendUnreservedURIChar(StringBuffer sb,
                                           String aURI)

decode

public static String decode(String aInput)

constructFromXML

public static Object constructFromXML(XMLReadable aConfig)
                               throws ClassNotFoundException,
                                      NoSuchMethodException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException
Throws:
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.