Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages | Examples

HexDumper Class Reference

Makes hexdumps out of given data. More...

List of all members.

Public Member Functions

 setDelimiter ($value)
 The given value will be colored in html dumps.
 setEndOfHeader ($offset)
 sets the offset of the header's end
 createASCIIDump ($data)
 creates an ASCII hex dump out of the given data
 createHTMLDump ($data, $css2=FALSE)
 creates an HTML hex dump out of the given data
 _makeHTMLHex ($value, $offset)
 formats the given number for a hex dump
 _makeHTMLASCII ($char, $offset)
 formats the given value for the ASCII part of an hex dump

Public Attributes

 $highlightValues = array()
 array of values to highlight
 $endOfHeader
 stores the offset of the header end
 $startOfTerminator
 stores the offset where the terminator starts


Detailed Description

Makes hexdumps out of given data.

Author:
Jeremias Reith (jr@gsquery.org)
Version:
Revision
1.9
Non ASCII bytes will be colored blue in html dumps


Member Function Documentation

HexDumper::_makeHTMLASCII char,
offset
 

formats the given value for the ASCII part of an hex dump

Parameters:
char the character to format
offset the offset of the given character
Returns:
a possibly colorized, HTML encoded character
Non ASCII characters will be replaced with a dot

HexDumper::_makeHTMLHex value,
offset
 

formats the given number for a hex dump

Parameters:
value the number to use
offset the offset of the given number
Returns:
a white space padded 2 digit possibly colorized hex number

HexDumper::createASCIIDump data  ) 
 

creates an ASCII hex dump out of the given data

Parameters:
data the data to use
Returns:
the resultung dump

HexDumper::createHTMLDump data,
css2 = FALSE
 

creates an HTML hex dump out of the given data

Parameters:
data the data to use
css2 set to TRUE and the hex dump will be laid out using CSS 2
Returns:
the resultung dump
See also:
http://www.w3.org/TR/REC-CSS2/text.html#white-space-prop
AFAIK the gecko engine (Mozilla, Firefox, Camino...) supports the CSS2 property white-space only. Set css2 to FALSE for all other browsers.

HexDumper::setDelimiter value  ) 
 

The given value will be colored in html dumps.

Parameters:
value the value that should be colored
Use this to colorize a delimiter (red)

HexDumper::setEndOfHeader offset  ) 
 

sets the offset of the header's end

Parameters:
offset offset of the header's end
Use this to colorize the header in html dumps (green)


Member Data Documentation

HexDumper::$highlightValues = array()
 

array of values to highlight

Format: value => html color


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 16:52:00 2005 for gsQuery by  doxygen 1.4.4