com.isti.util.bytehandler
Class FormatElement

java.lang.Object
  extended by com.isti.util.bytehandler.FormatElement

public class FormatElement
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2005

Company:


Constructor Summary
FormatElement()
           
FormatElement(java.lang.String s)
          turn a string into a format elemetn, if it is of the correct type x - pad byte no value (1 byte) c - char string of length 1 (1 byte) b - signed char integer (1 byte) h - short integer (2 bytes) i - int integer (4 bytes) l - long integer (8 bytes) f - float float (4 bytes) d - double float (8 bytes) s - char[] string
 
Method Summary
 int getStringLen()
           
 char getType()
           
static void main(java.lang.String[] args)
           
 void setType(java.lang.String val)
          turn a string into a format elemetn, if it is of the correct type x - pad byte no value (1 byte) c - char string of length 1 (1 byte) b - signed char integer (1 byte) h - short integer (2 bytes) i - int integer (4 bytes) l - long integer (8 bytes) f - float float (4 bytes) d - double float (8 bytes) s - char[] string
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatElement

public FormatElement()

FormatElement

public FormatElement(java.lang.String s)
turn a string into a format elemetn, if it is of the correct type
  • x - pad byte no value (1 byte)
  • c - char string of length 1 (1 byte)
  • b - signed char integer (1 byte)
  • h - short integer (2 bytes)
  • i - int integer (4 bytes)
  • l - long integer (8 bytes)
  • f - float float (4 bytes)
  • d - double float (8 bytes)
  • s - char[] string

    Parameters:
    s - String
  • Method Detail

    main

    public static void main(java.lang.String[] args)

    getStringLen

    public int getStringLen()

    getType

    public char getType()

    setType

    public void setType(java.lang.String val)
    turn a string into a format elemetn, if it is of the correct type
  • x - pad byte no value (1 byte)
  • c - char string of length 1 (1 byte)
  • b - signed char integer (1 byte)
  • h - short integer (2 bytes)
  • i - int integer (4 bytes)
  • l - long integer (8 bytes)
  • f - float float (4 bytes)
  • d - double float (8 bytes)
  • s - char[] string

    Parameters:
    val - String

  • toString

    public java.lang.String toString()
    Overrides:
    toString in class java.lang.Object