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

Quick Search    Search Deep

com.yaftp.utils
Class EbcdicString  view EbcdicString download EbcdicString.java

java.lang.Object
  extended bycom.yaftp.utils.DataStructure
      extended bycom.yaftp.utils.EbcdicString

public class EbcdicString
extends DataStructure


Field Summary
private  byte[] _AsciiBuffer
           
private  EbcdicTable _conversionTable
           
 
Fields inherited from class com.yaftp.utils.DataStructure
_Offset, _Size, _Struct, ISO_LATIN_1
 
Constructor Summary
EbcdicString(EbcdicTable conversionTable, byte[] GivenBuffer)
           
EbcdicString(EbcdicTable conversionTable, byte[] GivenBuffer, int BufferPos, int CurSize)
          Construct object using given Byte Array
 
Method Summary
private  byte FromEbcdic(int Ii)
           
static void main(java.lang.String[] Argv)
          use this method just to debug or as a sample implementation of the EbcdicString class
 void toEbcdic(java.lang.String InStr)
          Convert to ebcdic into _EbcdicBuffer if origin is larger than dest , exception is thrown
 java.lang.String toString()
          Convert into JavaStr and return the value
 
Methods inherited from class com.yaftp.utils.DataStructure
ContainerExists, CopyFrom, CopyTo, GiveElem, SetElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_AsciiBuffer

private byte[] _AsciiBuffer

_conversionTable

private EbcdicTable _conversionTable
Constructor Detail

EbcdicString

public EbcdicString(EbcdicTable conversionTable,
                    byte[] GivenBuffer,
                    int BufferPos,
                    int CurSize)
Construct object using given Byte Array


EbcdicString

public EbcdicString(EbcdicTable conversionTable,
                    byte[] GivenBuffer)
Method Detail

FromEbcdic

private byte FromEbcdic(int Ii)

toEbcdic

public void toEbcdic(java.lang.String InStr)
              throws java.lang.ArrayIndexOutOfBoundsException
Convert to ebcdic into _EbcdicBuffer if origin is larger than dest , exception is thrown


toString

public java.lang.String toString()
Convert into JavaStr and return the value


main

public static void main(java.lang.String[] Argv)
use this method just to debug or as a sample implementation of the EbcdicString class