@Override public synchronized int read(){
  return pos < count ? buffer.charAt(pos++) & 0xFF : -1;
}

@ Override public synchronized int read ( ) { return pos < count ? buffer . charAt ( pos ++ ) & 0xFF : - 1 ; }
reads a single byte from the source string and returns it as an integer in the range from 0 to 255 . returns - 1 if the end of the source string has been reached .
