Class TSFileX

java.lang.Object
  extended by TSFile
      extended by TSFileX

 class TSFileX
extends TSFile

.

======================================================================
 Class TSFileX -- Common access to different files.
   This class provides access to different TS-Files in the same way
     as access to S-/T- or W-Files is used.
   Input : File-ID is read and checked.
   Output: Correct File-ID is added automatically.
   File-Sub-Type(input) is preserved -- class may be reused for output.
 Attention: -Some filetypes are ONLY written using UT-Format. However,
                all other formats are possible and explicitely supported.
                This includes the possibility, that a file is written
                in a compressed format, which cannot successfully
                loaded into MS-simulator. However, this is stated
                within filetype-definition.
            - Filetypes, which contain more than one File-Identifier,
                (e.g. '*.trk') must be handled by a seperate class.
 ##TSFileX (Eyecatcher)
=======================================================================
 


Field Summary
private  java.util.HashMap<java.lang.String,TSFleTok> ccmp
           
private  java.util.HashMap<java.lang.Integer,TSFleTok> cdec
           
private static java.util.HashMap<java.lang.String,TSFleTok> cmp
           
private static java.util.HashMap<java.lang.String,TSFleTok>[] cmpLst
           
private static java.util.HashMap<java.lang.Integer,TSFleTok> dec
           
private static java.util.HashMap<java.lang.Integer,TSFleTok>[] decLst
           
private static java.lang.String[][] FDef
           
private  java.lang.String FKngB
           
private  java.lang.String FKngU
           
protected static int FT$act
           
protected static int FT$car
           
protected static int FT$con
           
protected static int FT$env
           
protected static int FT$gts
           
protected static int FT$gty
           
protected static int FT$haz
           
protected static int FT$idx
           
protected static int FT$lts
           
protected static int FT$mkr
           
protected static int FT$pat
           
protected static int FT$ref
           
protected static int FT$shc
           
protected static int FT$sig
           
protected static int FT$sms
           
protected static int FT$spp
           
protected static int FT$srv
           
protected static int FT$ssc
           
protected static int FT$tgp
           
protected static int FT$tpl
           
protected static int FT$trf
           
protected static int FT$ttp
           
protected static int FT$ws
           
protected static int FT$xdb
           
protected static int FT$xit
           
static java.lang.String IdStr
           
private static int minIx
           
private static int NrRef
           
private static TSFleTok tok
           
private static TSFleTok tok1
           
private  java.lang.String Type
           
 
Fields inherited from class TSFile
IA, ICB, ICT, IN, IU, IUB, IUT, OA, OAA, OB_Len, OCB, OCT, OU, OUA, OUB, OUT
 
Constructor Summary
protected TSFileX()
          .
protected TSFileX(int ix, java.io.File dat)
          .
 
Method Summary
protected  java.lang.String chkFKng(java.lang.String K, boolean t)
          .
protected static java.lang.String getDesc(int nr, boolean dt)
          .
protected  TSFleTok getTok(int nr)
          .
protected  TSFleTok getTok(java.lang.String nme)
          .
protected  java.lang.String open(boolean out)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class TSFile
chgBuf, close, getData, getErr, getMode, getPath, getStat, getTyp, open, prtMode, putData, Reduce, setBuffer, setTyp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IdStr

public static final java.lang.String IdStr
See Also:
Constant Field Values

FT$gts

protected static final int FT$gts
See Also:
Constant Field Values

FT$lts

protected static final int FT$lts
See Also:
Constant Field Values

FT$idx

protected static final int FT$idx
See Also:
Constant Field Values

FT$ws

protected static final int FT$ws
See Also:
Constant Field Values

FT$xdb

protected static final int FT$xdb
See Also:
Constant Field Values

FT$xit

protected static final int FT$xit
See Also:
Constant Field Values

FT$sig

protected static final int FT$sig
See Also:
Constant Field Values

FT$act

protected static final int FT$act
See Also:
Constant Field Values

FT$pat

protected static final int FT$pat
See Also:
Constant Field Values

FT$srv

protected static final int FT$srv
See Also:
Constant Field Values

FT$trf

protected static final int FT$trf
See Also:
Constant Field Values

FT$sms

protected static final int FT$sms
See Also:
Constant Field Values

FT$env

protected static final int FT$env
See Also:
Constant Field Values

FT$ssc

protected static final int FT$ssc
See Also:
Constant Field Values

FT$ttp

protected static final int FT$ttp
See Also:
Constant Field Values

FT$car

protected static final int FT$car
See Also:
Constant Field Values

FT$tgp

protected static final int FT$tgp
See Also:
Constant Field Values

FT$gty

protected static final int FT$gty
See Also:
Constant Field Values

FT$spp

protected static final int FT$spp
See Also:
Constant Field Values

FT$tpl

protected static final int FT$tpl
See Also:
Constant Field Values

FT$haz

protected static final int FT$haz
See Also:
Constant Field Values

FT$mkr

protected static final int FT$mkr
See Also:
Constant Field Values

FT$ref

protected static final int FT$ref
See Also:
Constant Field Values

FT$con

protected static final int FT$con
See Also:
Constant Field Values

FT$shc

protected static final int FT$shc
See Also:
Constant Field Values

cmpLst

private static final java.util.HashMap<java.lang.String,TSFleTok>[] cmpLst

decLst

private static final java.util.HashMap<java.lang.Integer,TSFleTok>[] decLst

FDef

private static final java.lang.String[][] FDef

minIx

private static final int minIx
See Also:
Constant Field Values

NrRef

private static final int NrRef

cmp

private static java.util.HashMap<java.lang.String,TSFleTok> cmp

dec

private static java.util.HashMap<java.lang.Integer,TSFleTok> dec

tok

private static TSFleTok tok

tok1

private static final TSFleTok tok1

ccmp

private java.util.HashMap<java.lang.String,TSFleTok> ccmp

cdec

private java.util.HashMap<java.lang.Integer,TSFleTok> cdec

FKngU

private java.lang.String FKngU

FKngB

private java.lang.String FKngB

Type

private java.lang.String Type
Constructor Detail

TSFileX

protected TSFileX()
.
=====================================================================
 Constructor: (1) Create Default-Entry
=====================================================================
  


TSFileX

protected TSFileX(int ix,
                  java.io.File dat)
.
=====================================================================
 Constructor: (2) Create Standard-Entry
=====================================================================
  

Method Detail

chkFKng

protected final java.lang.String chkFKng(java.lang.String K,
                                         boolean t)
.
=====================================================================
 Method "chkFKng"
 Check File-Identifier for current type of file.
 If argument is 'null', the full key is provided (for write).
 ##chkFKng.TSFileX (Eyecatcher)
=====================================================================
  

Overrides:
chkFKng in class TSFile

getDesc

protected static final java.lang.String getDesc(int nr,
                                                boolean dt)
.
=====================================================================
 Method "getDesc"
 Get description of referenced file-(-type) according to 
   unambigous number. (datattype='false')
 Returns default 'regular expression' to select files if
   datattype(dt) is 'true'.
 If index/number is NOT valid, 'null' is returned.
 ##getDesc.TSFileX (Eyecatcher)
=====================================================================
  


getTok

protected final TSFleTok getTok(int nr)
.
=====================================================================
 Method "getTok" (version 'expand')
 Get current definition of token from table (key=number)
 ##getTok.TSFileX (Eyecatcher)
=====================================================================
  

Overrides:
getTok in class TSFile

getTok

protected final TSFleTok getTok(java.lang.String nme)
.
=====================================================================
 Method "getTok" (version 'reduce')
 Get current definition of token from table (key=name)
 ##getTok.TSFileX (Eyecatcher)
=====================================================================
  

Overrides:
getTok in class TSFile

open

protected final java.lang.String open(boolean out)
.
=====================================================================
 Method "open"
 Open file and create Reader or Writer.
 If 'input' is requested: check input-mode of file
  All modes/formats are supported for 'input'!
 Method returns an error-message or 'null' if no error.
 This method overwrites 'open'-function from TSFile-class.
 !!! ONLY UT-format is used as output for THIS filetype!!!
 ATTENTION: Within open-processing 'chkFKng()' is called.
 ##open.TSFileX (Eyecatcher)
=====================================================================
  


toStr

protected final java.lang.String toStr()
.
=====================================================================
 Method "toStr"
 Build an String-representation of all values of this class.
 ##toStr.TSFileX (Eyecatcher)
=====================================================================
  

Overrides:
toStr in class TSFile