nesstar.util
Class SendMailTest

java.lang.Object
  extended by nesstar.util.SendMailTest

public class SendMailTest
extends Object

SendMail Client

Author:
Steve Hassan

Constructor Summary
SendMailTest()
           
 
Method Summary
static String bytesToString(byte[] bytes)
          Convert a byte array into a character using a simple zero-extension into 16 bits for each byte.
static String fileToString(File source)
          Returns the file represented by sourcefile as a string (random access)
static void main(String[] argv)
          SendMail main
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendMailTest

public SendMailTest()
Method Detail

main

public static void main(String[] argv)
SendMail main

Parameters:
argv -

fileToString

public static String fileToString(File source)
Returns the file represented by sourcefile as a string (random access)

Parameters:
sourcefile - full path name of file to read
Returns:
string representation of source file

bytesToString

public static String bytesToString(byte[] bytes)
Convert a byte array into a character using a simple zero-extension into 16 bits for each byte. Note: The resulting string is not in UNICODE.

Parameters:
bytes - an array of bytes.
Returns:
a string of 16-bit characters

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved