xml/xmldomandxpath/src/xmlengineserializer/xmlenggzipbufferdeserializebm.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Interface class describing class that may be used as
       
    15 // output stream for dom tree
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23  @released
       
    24 */
       
    25 #ifndef XMLENGCGZIPBUFFERDESERIALIZEBM_H
       
    26 #define XMLENGCGZIPBUFFERDESERIALIZEBM_H
       
    27 
       
    28 #include <xml/dom/xmlengoutputstream.h>
       
    29 
       
    30 #include <ezbufman.h>
       
    31 #include <xml/parser.h>
       
    32 
       
    33 class CXmlEngGZipBufferDeserializeBM : public CBase, public MEZBufferManager
       
    34 	{
       
    35 	public:
       
    36         static CXmlEngGZipBufferDeserializeBM* NewLC( Xml::CParser* aParser, const TDesC8& aInputBuffer, TInt aOutBufSize = 0x8000 );
       
    37 
       
    38         static CXmlEngGZipBufferDeserializeBM* NewL( Xml::CParser* aParser, const TDesC8& aInputBuffer, TInt aOutBufSize = 0x8000 );
       
    39 
       
    40 	    ~CXmlEngGZipBufferDeserializeBM();
       
    41 	    
       
    42         /**
       
    43          * Implementation of MEZBufferManager interface.
       
    44          */
       
    45 	    void InitializeL(CEZZStream& aZStream);
       
    46 	    void NeedInputL(CEZZStream& aZStream);
       
    47 	    void NeedOutputL(CEZZStream& aZStream);
       
    48 	    void FinalizeL(CEZZStream& aZStream);
       
    49 
       
    50 
       
    51     protected:
       
    52 	    CXmlEngGZipBufferDeserializeBM( Xml::CParser* aParser, const TDesC8& aInputBuffer );
       
    53 	    void ConstructL( TInt aOutBufSize );
       
    54 			
       
    55 	private:
       
    56 	    
       
    57 	    /** XML Framework Parser Interface **/
       
    58 	    Xml::CParser*				iParser;
       
    59 
       
    60 	    /** Buffer to be parsed **/
       
    61 	    TPtrC8	iInputDescriptor;
       
    62         TPtr8 iOutputDescriptor; // always points to start of the output Buffer	    	
       
    63 	    
       
    64 	    /** chars array **/
       
    65 	    TUint8* iOutputBuffer;
       
    66 	
       
    67 	    	    
       
    68 	}; 
       
    69 
       
    70 #endif /* CGZipBufferDeserializeBM_H */