Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

sosc::StringTool Class Reference

List of all members.

Static Public Methods

String anglosize (String original) throws Exception
String fileToString (String path) throws IOException
String streamToString (InputStream in) throws IOException
String appendPadding (String destination, int desiredLength) throws Exception
String appendPadding (String destination, String padChar, int desiredLength) throws Exception

Member Function Documentation

String sosc::StringTool::anglosize String    original throws Exception [inline, static]
 

Take any string and returning in US-ASCII encoding. Note that any characters that are not US-ASCII are replaced by "?". This is really not usefull, except as a stop-gap where, say, you have French words like Île-à-La-Crosse that need to get sent to an external system that is US-ASCII only. I would like to make this better by mapping Î to I instead of ? as it currently is.

This has bandaid written all over it.

Definition at line 45 of file StringTool.java.

String sosc::StringTool::appendPadding String    destination,
String    padChar,
int    desiredLength
throws Exception [inline, static]
 

Definition at line 88 of file StringTool.java.

String sosc::StringTool::appendPadding String    destination,
int    desiredLength
throws Exception [inline, static]
 

Definition at line 81 of file StringTool.java.

String sosc::StringTool::fileToString String    path throws IOException [inline, static]
 

Reads the contents of the specified file (absolute or relative path) and returns a string.

Definition at line 55 of file StringTool.java.

References sosc::StringTool::streamToString().

String sosc::StringTool::streamToString InputStream    in throws IOException [inline, static]
 

Returns the contents of the inputstream as a string.

Definition at line 70 of file StringTool.java.

Referenced by sosc::StringTool::fileToString().


The documentation for this class was generated from the following file:
Generated on Mon Jul 14 17:19:22 2003 for SOSC by doxygen1.2.15