com.partnersoft.io.formats.binary
Class ShortIntegerFieldFormat

java.lang.Object
  extended by com.partnersoft.io.formats.binary.ShortIntegerFieldFormat
All Implemented Interfaces:
BinaryFixedWidthFieldFormat

public class ShortIntegerFieldFormat
extends java.lang.Object
implements BinaryFixedWidthFieldFormat

A format for the ShortInteger text values in a BinaryFixedWidthField.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Constructor Summary
ShortIntegerFieldFormat()
           
 
Method Summary
 void format(java.lang.Object value, byte[] bytes, int position, int length)
           
 boolean getReverseBytes()
           
 java.lang.Object parse(byte[] bytes, int position, int length)
           
 void setReverseBytes(boolean tizit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortIntegerFieldFormat

public ShortIntegerFieldFormat()
Method Detail

parse

public java.lang.Object parse(byte[] bytes,
                              int position,
                              int length)
Specified by:
parse in interface BinaryFixedWidthFieldFormat

format

public void format(java.lang.Object value,
                   byte[] bytes,
                   int position,
                   int length)
Specified by:
format in interface BinaryFixedWidthFieldFormat

getReverseBytes

public boolean getReverseBytes()

setReverseBytes

public void setReverseBytes(boolean tizit)