'Read one character from the stream or queue if available. Return
EOF when EOF is reached.'

def char(self):

    if (self.chunkOffset >= self.chunkSize):
        if (not self.readChunk()):
            return EOF
    chunkOffset = self.chunkOffset
    char = self.chunk[chunkOffset]
    self.chunkOffset = (chunkOffset + 1)
    return char
