XCMS Toolkit

jtools
Class HexFile

java.lang.Object
  extended by jtools.HexFile

public class HexFile
extends java.lang.Object

Provides access to a text file that contains the hexadecimal encoding of some binary value. The value can be retrieved as a hexadecimal string or converted to a byte.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Constructor Summary
HexFile(java.lang.String path)
          Constructor for HexFile with file name path parameter.
 
Method Summary
 byte[] getBinary()
          Gets hexadecimal characters from a file and returns their equivalent binary representation.
 java.lang.String getHex()
          Gets hexadecimal characters from a file and returns them in a character string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexFile

public HexFile(java.lang.String path)
Constructor for HexFile with file name path parameter.

Method Detail

getHex

public java.lang.String getHex()
                        throws java.io.IOException
Gets hexadecimal characters from a file and returns them in a character string representation.

Returns:
a String of characters
Throws:
java.io.IOException

getBinary

public byte[] getBinary()
                 throws java.io.IOException
Gets hexadecimal characters from a file and returns their equivalent binary representation.

Returns:
the binary representation of a string of hexadecimal characters
Throws:
java.io.IOException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.