SmartFrog 3.10.000

org.smartfrog.services.os.java
Class LibraryHelper

java.lang.Object
  extended by org.smartfrog.services.os.java.LibraryHelper

public final class LibraryHelper
extends java.lang.Object

Author:
slo

Method Summary
static java.lang.String digestToString(byte[] digest)
          get a string value of a digest as a hex list, two characters per byte.
static java.lang.String patchProject(java.lang.String projectName)
          Convert a dotted project name into a forward slashed project name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

digestToString

public static java.lang.String digestToString(byte[] digest)
get a string value of a digest as a hex list, two characters per byte. There would seem to be a more efficient implementation of this involving a 256 byte memory buffer.

Parameters:
digest -
Returns:
hex equivalent

patchProject

public static java.lang.String patchProject(java.lang.String projectName)
Convert a dotted project name into a forward slashed project name. This is done in preparation for Maven2 repositories, which will have more depth to their classes. NB: only public for testing. This is not a public API.

Parameters:
projectName -
Returns:
a string whch may or may not match the old string.

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP