Class TSFile$td

java.lang.Object
  extended by TSFile
      extended by TSFile$td

 class TSFile$td
extends TSFile

.

======================================================================
 Class TSFile$td -- Common access to '.td' files
   This class provides access to '.td'/'.tdl' 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.
 Attention: File is written using UB-Format. No other format is
            supported.
 ##TSFile$td (Eyecatcher)
=======================================================================
 


Field Summary
private  TSByteArrIO BIO
           
private  int EoP
           
private static java.lang.String FKngB
           
static java.lang.String IdStr
           
private static byte[] Prfx
           
 
Fields inherited from class TSFile
IA, ICB, ICT, IN, IU, IUB, IUT, OA, OAA, OB_Len, OCB, OCT, OU, OUA, OUB, OUT, tok1
 
Constructor Summary
protected TSFile$td()
          .
protected TSFile$td(java.io.File dat)
          .
 
Method Summary
protected  java.lang.String chkFKng(java.lang.String K, boolean t)
          .
protected  java.lang.String close()
          .
protected  java.lang.String load(TSByteArrIO cB)
          .
protected  java.lang.String open(int iom)
          .
 java.lang.String open(TSByteArrIO cB)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class TSFile
chgBuf, getData, getErr, getMode, getPath, getStat, getTok, getTok, getTyp, 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

FKngB

private static final java.lang.String FKngB
See Also:
Constant Field Values

Prfx

private static final byte[] Prfx

BIO

private TSByteArrIO BIO

EoP

private int EoP
Constructor Detail

TSFile$td

protected TSFile$td()
.
=====================================================================
 Constructor: (1) Create Default-Entry
=====================================================================
  


TSFile$td

protected TSFile$td(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.TSFile$td (Eyecatcher)
=====================================================================
  

Overrides:
chkFKng in class TSFile

close

protected final java.lang.String close()
.
=====================================================================
 Method "close"
 This method completes the file-structure and closes the file.

 Attention: File must be opened for 'output', which is checked
   using value of 'EoP', which must be greater than '14'.
 This method overwrites 'close'-function from TSFile-class.
 ##close.TSFile$td (Eyecatcher)
=====================================================================
  

Overrides:
close in class TSFile

load

protected final java.lang.String load(TSByteArrIO cB)
.
=====================================================================
 Method "load"
 Open '.td'/'.tdl'-file for input and establish 'BIO' as IO-buffer.
   Load complete file into binary buffer and close file again.
 Attention: This method ALSO skips a prefix of 18 bytes within
            buffer just read.
 ##load.TSFile$td (Eyecatcher)
=====================================================================
  


open

public final java.lang.String open(TSByteArrIO cB)
.
=====================================================================
 Method "open"
 Open file for OUTPUT and create Writer.
 Write file-ID using mode UB (file is a binary object)

 Method returns an error-message or 'null' if no error.
 ATTENTION: - Within open-processing 'chkFKng()' is called.
            - This method is ONLY used for OUTPUT. Open-Input is
               implemented into 'load'-call.
 ##open.TSFile$td (Eyecatcher)
=====================================================================
  


open

protected final java.lang.String open(int iom)
.
=====================================================================
 Method "open"
 This method-call blocks super-class function 'open'.
 Method throws an exception to terminate with a systemerror.
 This method overwrites 'open'-function from TSFile-class.
 ##open.TSFile$td (Eyecatcher)
=====================================================================
  

Overrides:
open in class TSFile

toStr

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

Overrides:
toStr in class TSFile