2005/5/9

     
 

class Format

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::text::Format Class Reference

#include <Format.h>

Inheritance diagram for acdk::text::Format:

acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::text::DateFormat acdk::text::NumberFormat acdk::text::SimpleDateFormat acdk::text::DecimalFormat List of all members.

Public Member Functions

 Format ()
 .

virtual ~Format ()
 Destructor.

virtual RString format (IN(acdk::lang::Object) obj)
 This method formats an acdk::lang::Object into a String.

virtual RStringBuffer format (IN(acdk::lang::Object) obj, IN(RStringBuffer) sb, IN(RFieldPosition) pos)=0
 This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

virtual acdk::lang::Object parseObject (IN(RString) str)
 This method parses aString and coverts the parsed contends into an acdk::lang::Object.

virtual acdk::lang::Object parseObject (IN(RString) str, IN(RParsePosition) pos)=0
virtual acdk::lang::Object clone ()
 Creates a copy of this object.


Static Public Member Functions

RString dos2unix (IN(RString) str)
RString unix2dos (IN(RString) str)
RString dumpbin (IN(RbyteArray) data, int wide)
RString hexToString (IN(RcharArray) ch, int offset=0, int length=1)
RString hexToString (const char *buffer, int length)

Constructor & Destructor Documentation

acdk::text::Format::Format  ) 
 

virtual acdk::text::Format::~Format  )  [virtual]
 

Destructor.


Member Function Documentation

virtual acdk::lang::Object acdk::text::Format::clone  )  [virtual]
 

Creates a copy of this object.

Returns:
The copied acdk::lang::Object.

Implements acdk::lang::Cloneable.

Reimplemented in acdk::text::DateFormat, acdk::text::DecimalFormat, and acdk::text::SimpleDateFormat.

RString acdk::text::Format::dos2unix IN(RString str  )  [static]
 

RString acdk::text::Format::dumpbin IN(RbyteArray data,
int  wide
[static]
 

virtual RStringBuffer acdk::text::Format::format IN(acdk::lang::Object obj,
IN(RStringBuffer sb,
IN(RFieldPosition pos
[pure virtual]
 

This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

Parameters:
obj The acdk::lang::Object to format.
sb The StringBuffer to append to.
pos The desired FieldPosition, which is also updated by this call
Returns:
The updated StringBuffer. IllegalArgumentException If the acdk::lang::Object cannot be formatted

Implemented in acdk::text::DateFormat, and acdk::text::DecimalFormat.

virtual RString acdk::text::Format::format IN(acdk::lang::Object obj  )  [virtual]
 

This method formats an acdk::lang::Object into a String.

Parameters:
obj The acdk::lang::Object to format
Returns:
The formatted String IllegalArgumentException If the acdk::lang::Object cannot be formatted

RString acdk::text::Format::hexToString const char *  buffer,
int  length
[static]
 

RString acdk::text::Format::hexToString IN(RcharArray ch,
int  offset = 0,
int  length = 1
[static]
 

virtual acdk::lang::Object acdk::text::Format::parseObject IN(RString str,
IN(RParsePosition pos
[pure virtual]
 

Implemented in acdk::text::DateFormat, and acdk::text::NumberFormat.

virtual acdk::lang::Object acdk::text::Format::parseObject IN(RString str  )  [virtual]
 

This method parses aString and coverts the parsed contends into an acdk::lang::Object.

Parameters:
str The String to parse.
Returns:
The resulting acdk::lang::Object.
Exceptions:
ParseException If the String cannot be parsed.

RString acdk::text::Format::unix2dos IN(RString str  )  [static]