implement objectinterface
define constant for reading direction
add method Pad
add class Encoding