Class TSFleOutStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by TSFleOutStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

 class TSFleOutStream
extends java.io.ByteArrayOutputStream

===================================================================== Class TSFleOutStream -- Extension of 'ByteArrayOutputStream' OutputStream to buffer-array (reduced TSFile-data) This class also contains some (static) methods to change buffer-contents ##TSFleOutStream (Eyecatcher) =====================================================================


Field Summary
protected static java.lang.String IdStr
           
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
protected TSFleOutStream()
          ==================================================================== Constructor: (1) Create Default-Entry ====================================================================
protected TSFleOutStream(int bl)
          ==================================================================== Constructor: (2) Create Standard-Entry ====================================================================
 
Method Summary
protected static long getInt(int len, byte[] src, int ofs)
          ==================================================================== Method "getInt" (static version) Get back Integer-value from Byte-Array as 'long' assuming MS-Format Attention: Method is also called from (TSUtil.)'
protected  java.lang.String putByte(int val, int pos)
          ==================================================================== Method "putByte" Write byte to output-buffer Returns error-message if request fails ('null' if no error) Attention: method CANNOT add new bytes to buffer.
protected  java.lang.String putInt(long val, int len)
          ==================================================================== Method "putInt" Write Integer/unsigned Integer to output-buffer using MS-Format Returns error-message if request fails ('null' if no error) ##putInt.TSFleOutStream (Eyecatcher) ====================================================================
protected static java.lang.String putInt(long val, int len, byte[] dst, int pos)
          ==================================================================== Method "putInt" (static version) Write Integer/unsigned Integer to target-array using MS-Format Returns error-message if request fails ('null' if no error) Attention: Method is also called from (TSUtil.)'
protected  java.lang.String putInt(long val, int len, int pos)
          ==================================================================== Method "putInt" (2. version) Write Integer/unsigned Integer to output-buffer using MS-Format Returns error-message if request fails ('null' if no error) Attention: method CANNOT add new bytes to buffer.
protected  java.lang.String putString(java.lang.String s, boolean nol)
          ==================================================================== Method "putString" Convert Unicode-String to output-buffer ('Label' or data) Returns error-message if request fails ('null' if no error) If 'data' is written, a length-field (short) is inserted before the Unicode-String.
protected  java.lang.String toStr()
          ==================================================================== Method "toStr" Build a string-representation of all values of this class ##toStr.TSFleOutStream (Eyecatcher) ====================================================================
protected  java.lang.String write(java.io.File dat)
          ==================================================================== Method "write" Write complete buffer to targetfile Returns error-message if request fails ('null' if no error) ##write.TSFleOutStream (Eyecatcher) ====================================================================
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IdStr

protected static final java.lang.String IdStr
See Also:
Constant Field Values
Constructor Detail

TSFleOutStream

protected TSFleOutStream()
==================================================================== Constructor: (1) Create Default-Entry ====================================================================


TSFleOutStream

protected TSFleOutStream(int bl)
==================================================================== Constructor: (2) Create Standard-Entry ====================================================================

Method Detail

getInt

protected static final long getInt(int len,
                                   byte[] src,
                                   int ofs)
==================================================================== Method "getInt" (static version) Get back Integer-value from Byte-Array as 'long' assuming MS-Format Attention: Method is also called from (TSUtil.)'getTD()'-method. ##getInt.TSFleOutStream (Eyecatcher) ====================================================================


putByte

protected final java.lang.String putByte(int val,
                                         int pos)
==================================================================== Method "putByte" Write byte to output-buffer Returns error-message if request fails ('null' if no error) Attention: method CANNOT add new bytes to buffer. It is only used to modify already written bytes ##putByte.TSFleOutStream (Eyecatcher) ====================================================================


putInt

protected final java.lang.String putInt(long val,
                                        int len)
==================================================================== Method "putInt" Write Integer/unsigned Integer to output-buffer using MS-Format Returns error-message if request fails ('null' if no error) ##putInt.TSFleOutStream (Eyecatcher) ====================================================================


putInt

protected final java.lang.String putInt(long val,
                                        int len,
                                        int pos)
==================================================================== Method "putInt" (2. version) Write Integer/unsigned Integer to output-buffer using MS-Format Returns error-message if request fails ('null' if no error) Attention: method CANNOT add new bytes to buffer. It is only used to modify already written bytes ##putInt.TSFleOutStream (Eyecatcher) ====================================================================


putInt

protected static final java.lang.String putInt(long val,
                                               int len,
                                               byte[] dst,
                                               int pos)
==================================================================== Method "putInt" (static version) Write Integer/unsigned Integer to target-array using MS-Format Returns error-message if request fails ('null' if no error) Attention: Method is also called from (TSUtil.)'putTD()'-method. ##putInt.TSFleOutStream (Eyecatcher) ====================================================================


putString

protected final java.lang.String putString(java.lang.String s,
                                           boolean nol)
==================================================================== Method "putString" Convert Unicode-String to output-buffer ('Label' or data) Returns error-message if request fails ('null' if no error) If 'data' is written, a length-field (short) is inserted before the Unicode-String. ##putString.TSFleOutStream (Eyecatcher) ====================================================================


write

protected final java.lang.String write(java.io.File dat)
==================================================================== Method "write" Write complete buffer to targetfile Returns error-message if request fails ('null' if no error) ##write.TSFleOutStream (Eyecatcher) ====================================================================


toStr

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