Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

rcs.nml
Class DISPFormatConverter  view DISPFormatConverter download DISPFormatConverter.java

java.lang.Object
  extended byrcs.nml.NMLFormatConverter
      extended byrcs.nml.NMLFormatConverterBase
          extended byrcs.nml.DISPFormatConverter

public class DISPFormatConverter
extends NMLFormatConverterBase

The DISPFormatConverter converts NML message classes to simple text strings. Most users should not use it directly.

 Related Documentation: 
 RCS Library, NML Programmers Guide (Java Version)

 Source Code:
 DISPFormatConverter.java

 


Field Summary
protected  byte[] temp_input_bytes
           
(package private)  java.lang.String token
           
private  int tokens_taken
           
 
Fields inherited from class rcs.nml.NMLFormatConverterBase
bytes_in_input_stream, bytes_in_input_stream_known, debug_on, decoding, first_format_error, input_stream, input_string, input_string_tokenizer, msg_dict, msg_size, output_stream, output_string, raw_data_size, use_string
 
Fields inherited from class rcs.nml.NMLFormatConverter
cmd_msg_updated, error_in_update, msg_to_update, msg_type, stat_msg_updated
 
Constructor Summary
DISPFormatConverter()
           
 
Method Summary
protected  int improved_parse_int(java.lang.String str)
           
protected  long improved_parse_long(java.lang.String str)
           
protected  void make_it_use_string()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 byte update(byte x)
           
 void update(byte[] x, int num_elements)
           
 char update(char x)
           
 void update(char[] x, int num_elements)
           
 double update(double x)
           
 void update(double[] x, int num_elements)
           
 float update(float x)
           
 void update(float[] x, int num_elements)
           
 int update(int x)
           
 void update(int[] x, int num_elements)
           
 long update(long x)
           
 void update(long[] x, int num_elements)
           
 short update(short x)
           
 void update(short[] x, int num_elements)
           
protected  void write_string_without_zero_end(java.lang.String str)
           
 
Methods inherited from class rcs.nml.NMLFormatConverterBase
convertMsgToRawData, convertMsgToString, convertRawDataToMsg, convertStringToMsg, GetMessageDictionary, getMessageFromInputStream, rewind, sendMsgToOutputStream, SetMessageDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

temp_input_bytes

protected byte[] temp_input_bytes

token

java.lang.String token

tokens_taken

private int tokens_taken
Constructor Detail

DISPFormatConverter

public DISPFormatConverter()
Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class NMLFormatConverter

write_string_without_zero_end

protected void write_string_without_zero_end(java.lang.String str)
                                      throws java.io.IOException

improved_parse_long

protected long improved_parse_long(java.lang.String str)

improved_parse_int

protected int improved_parse_int(java.lang.String str)

make_it_use_string

protected void make_it_use_string()

update

public byte update(byte x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(byte[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public char update(char x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(char[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public short update(short x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(short[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public int update(int x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(int[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public long update(long x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(long[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public float update(float x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(float[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public double update(double x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(double[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase