NetKernel APIs


org.ten60.netkernel.layer1.util
Class Utils

java.lang.Object
  extended byorg.ten60.netkernel.layer1.util.Utils

public class Utils
extends Object

General utility methods


Constructor Summary
Utils()
           
 
Method Summary
static String fixSlash(String uri)
          Returns a string with the \ replaced by /
static String getExpireDescription(IURMeta meta)
           
static int getJREMajorVersion()
           
static int getJREMinorMinorVersion()
           
static int getJREMinorVersion()
           
static String getTimeStampString(Date aDate)
          Returns a standard format Timestamp String representing the gi8ven date.
static void pipe(InputStream aInput, OutputStream aOutput)
          copy an input stream to an outputsteam and close streams when finished
static InputStream pipeInputStreamFrom(IAspectBinaryStream aStream)
          return an InputStream from an IAspectBinaryStream using a pipe
static void writeMeta(StringBuffer aResult, IURMeta aMeta)
           
 
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

getTimeStampString

public static String getTimeStampString(Date aDate)
Returns a standard format Timestamp String representing the gi8ven date.

Parameters:
aDate - The date to create the timestamp string for.
Returns:
The timestamp string.

fixSlash

public static String fixSlash(String uri)
Returns a string with the \ replaced by /


getJREMajorVersion

public static int getJREMajorVersion()
Returns:
the JRE major version

getJREMinorVersion

public static int getJREMinorVersion()
Returns:
the JRE minor version

getJREMinorMinorVersion

public static int getJREMinorMinorVersion()
Returns:
the JRE minor minor version

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

pipeInputStreamFrom

public static InputStream pipeInputStreamFrom(IAspectBinaryStream aStream)
                                       throws IOException
return an InputStream from an IAspectBinaryStream using a pipe

Throws:
IOException

writeMeta

public static void writeMeta(StringBuffer aResult,
                             IURMeta aMeta)

getExpireDescription

public static String getExpireDescription(IURMeta meta)

NetKernel APIs


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