code: private int parseByte()
          throws IOException
      {
          while (_chunkLength <= 0) {
              if (_isLastChunk) {
                  return -1;
              }
  
              int code = read();
  
              switch (code) {
                  case 'b':
                      _isLastChunk = false;
  
                      _chunkLength = (read() << 8) + read();
                      break;
  
                  case 'B':
                      _isLastChunk = true;
  
                      _chunkLength = (read() << 8) + read();
                      break;
  
                  default:
                      throw expect("byte[]", code);
              }
          }
  
          _chunkLength--;
  
          return read();
      }
docs: Reads a byte from the underlying stream.