}
// initialize stream
str = ((DCTStream *)str)->getRawStream();
str = str->getNextStream();
str->reset();
// copy the stream