1-Wire API for .NET Version 4.00
Static Public Member Functions

IOHelper Class Reference

Generic IO routines. More...

List of all members.

Static Public Member Functions

static final synchronized void writeBytes (String delim, byte[] b, int offset, int cnt)
 Writes a byte[] to the specified output stream.
static final synchronized void writeBytes (byte[] b)
 Writes a byte[] to the specified output stream.

Detailed Description

Generic IO routines.

Supports printing and reading arrays of bytes. Also, using the setReader and setWriter methods, the source of the bytes can come from any stream as well as the destination for written bytes. All routines are static and final and handle all exceptional cases by returning a default value.

Version:
0.02, 2 June 2001
Author:
SH

Member Function Documentation

static final synchronized void writeBytes ( String  delim,
byte[]  b,
int  offset,
int  cnt 
) [static]

Writes a byte[] to the specified output stream.

This method writes a combined hex and ascii representation where each line has (at most) 16 bytes of data in hex followed by three spaces and the ascii representation of those bytes. To write out just the Hex representation, use writeBytesHex(byte[],int,int).

Parameters:
bthe byte array to print out.
offsetthe starting location to begin printing
cntthe number of bytes to print.
static final synchronized void writeBytes ( byte[]  b) [static]

Writes a byte[] to the specified output stream.

This method writes a combined hex and ascii representation where each line has (at most) 16 bytes of data in hex followed by three spaces and the ascii representation of those bytes. To write out just the Hex representation, use writeBytesHex(byte[],int,int).

Parameters:
bthe byte array to print out.

The documentation for this class was generated from the following file: