Class UtB

java.lang.Object
  |
  +--inf101.Ut
        |
        +--UtB

class UtB
extends inf101.Ut

Utvider klassen Ut med metode for ? skrive en kode p? opptil 21000 verdier p? fil i en eller to byter.


Constructor Summary
(package private) UtB()
           
(package private) UtB(java.lang.String s)
           
 
Method Summary
 void utKode(int k)
          Writes code 'k' to file: lower 100 values (2 digits in code) in byte 1. if value of code >= 100 then byte 1 >=100 and byte 2 = upper 3 digits (up to 210 values).
(package private)  int utKonv(int i)
          Avoids cotrol characters.
 
Methods inherited from class inf101.Ut
close, outChar, outChar, outDouble, outDouble, outInt, outInt, outLn, outString, outString, outStringLn, writeDouble, writeInt, writeLong
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtB

UtB(java.lang.String s)

UtB

UtB()
Method Detail

utKonv

int utKonv(int i)
Avoids cotrol characters. : 10, 13, 128-160
Returns:
'code' to be output on file, read by corresponding innKonv(int code)

utKode

public void utKode(int k)
Writes code 'k' to file: lower 100 values (2 digits in code) in byte 1. if value of code >= 100 then byte 1 >=100 and byte 2 = upper 3 digits (up to 210 values). Max code value = 210*100 (can easily be extended to 3,4.. byte encoding)