int DCTStream::getChar()
{
    if (current == limit)
        if (!readLine())
            return EOF;

    return *current++;
}
int DCTStream::getChar()
{
    if (current == limit)
        if (!readLine())
            return EOF;

    return *current++;
}