Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfContentsTokenizer::SetCurrentContentsStream ( PdfObject pObject ) [private]

Set another objects stream as the current stream for parsing

pObjectuse the stream of this object for parsing

Definition at line 92 of file PdfContentsTokenizer.cpp.

References PoDoFo::PdfRefCountedBuffer::GetBuffer(), PoDoFo::PdfStream::GetFilteredCopy(), PoDoFo::PdfRefCountedBuffer::GetSize(), and PoDoFo::PdfObject::GetStream().

Referenced by GetNextToken(), PdfContentsTokenizer(), and ReadNext().

    PODOFO_RAISE_LOGIC_IF( pObject == NULL, "Content stream object == NULL!" );

    PdfStream* pStream = pObject->GetStream();

      PdfRefCountedBuffer buffer;
    PdfBufferOutputStream stream( &buffer );
    pStream->GetFilteredCopy( &stream );

    m_device = PdfRefCountedInputDevice( buffer.GetBuffer(), buffer.GetSize() );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index