net.sourceforge.groboutils.codecoverage.v2.util
Class HexUtil

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.util.HexUtil

public class HexUtil
extends java.lang.Object

A simple utility to provide the Hexidecimal conversions for the log files. This contains the string-length checking and other verification steps that might be left out of some implementations.

Since:
July 7, 2004
Version:
$Date: 2004/07/08 05:29:20 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Nested Class Summary
static class HexUtil.TwoShorts
           
 
Field Summary
protected static HexUtil s_instance
           
 
Constructor Summary
protected HexUtil()
          Creates a new finder using the default (system) classpath.
 
Method Summary
static HexUtil getInstance()
           
 boolean parseTwoHex(java.lang.String text, HexUtil.TwoShorts ts, char sep, int startPos)
          Parses two hex strings separated by a character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_instance

protected static HexUtil s_instance
Constructor Detail

HexUtil

protected HexUtil()
Creates a new finder using the default (system) classpath.

Method Detail

getInstance

public static final HexUtil getInstance()

parseTwoHex

public boolean parseTwoHex(java.lang.String text,
                           HexUtil.TwoShorts ts,
                           char sep,
                           int startPos)
Parses two hex strings separated by a character. The string should not start with the separator char after the startPos.

Returns:
true if ts was populated correctly, or false if there was an error parsing the string.


Copyright © 2001-2003 by The GroboUtils Project