diff options
Diffstat (limited to '')
-rw-r--r-- | src/streamContentHandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/streamContentHandler.cpp b/src/streamContentHandler.cpp index 5da7ffba..c5f6145c 100644 --- a/src/streamContentHandler.cpp +++ b/src/streamContentHandler.cpp @@ -179,6 +179,20 @@ void streamContentHandler::extract(utility::outputStream& os) const } +void streamContentHandler::extractRaw(utility::outputStream& os) const +{ + if (m_stream == NULL && m_ownedStream.ptr() == NULL) + return; + + utility::inputStream& in = const_cast <utility::inputStream&> + (*(m_stream ? m_stream : m_ownedStream.ptr())); + + in.reset(); // may not work... + + utility::bufferedStreamCopy(in, os); +} + + const string::size_type streamContentHandler::getLength() const { return (m_length); |