|
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 // Implementation of GZIP deserializer |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 @released |
|
23 */ |
|
24 #ifndef XMLENGDESERIALIZER_GZIP__H |
|
25 #define XMLENGDESERIALIZER_GZIP__H |
|
26 |
|
27 #include <xml/utils/xmlengxestd.h> |
|
28 #include <xml/dom/xmlengdeserializer.h> |
|
29 |
|
30 /** |
|
31 * GZIP XML deserializer |
|
32 * |
|
33 */ |
|
34 class CXmlEngDeserializerGZIP: public CXmlEngDeserializer |
|
35 { |
|
36 public: |
|
37 static CXmlEngDeserializerGZIP* NewL( Xml::MContentHandler& aContentHandler ); |
|
38 |
|
39 /** |
|
40 * Deserializes XML |
|
41 * |
|
42 * |
|
43 * @leave KErrNoMemory, KErrGeneral, KXmlEngErrWrongEncoding. |
|
44 */ |
|
45 void DeserializeL(); |
|
46 |
|
47 /** |
|
48 * Deserializes XML |
|
49 * |
|
50 * @param aFileName File to be parsed |
|
51 * @param aOptions Parsing options |
|
52 * |
|
53 * @leave KErrNoMemory, KErrGeneral, KXmlEngErrWrongEncoding. |
|
54 */ |
|
55 void DeserializeL( const TDesC& aFileName, |
|
56 const TXmlEngParsingOptions& aOptions = |
|
57 TXmlEngParsingOptions() ); |
|
58 |
|
59 /** |
|
60 * Deserializes XML |
|
61 * |
|
62 * @param aRFs File Server session |
|
63 * @param aFileName File to be parsed |
|
64 * @param aOptions Parsing options |
|
65 * |
|
66 * @leave KErrNoMemory, KErrGeneral, KXmlEngErrWrongEncoding. |
|
67 */ |
|
68 void DeserializeL( RFs& aRFs, const TDesC& aFileName, |
|
69 const TXmlEngParsingOptions& aOptions = |
|
70 TXmlEngParsingOptions() ); |
|
71 |
|
72 /** |
|
73 * Deserializes XML |
|
74 * |
|
75 * @param aBuffer Buffer to be parsed |
|
76 * @param aOptions Parsing options |
|
77 * |
|
78 * @leave KErrNoMemory, KErrGeneral, KXmlEngErrWrongEncoding. |
|
79 */ |
|
80 void DeserializeL( const TDesC8& aBuffer, |
|
81 const TXmlEngParsingOptions& aOptions = |
|
82 TXmlEngParsingOptions() ); |
|
83 |
|
84 /** |
|
85 * Destructor. |
|
86 */ |
|
87 ~CXmlEngDeserializerGZIP(); |
|
88 |
|
89 protected: |
|
90 /** |
|
91 * Default constructor. |
|
92 */ |
|
93 CXmlEngDeserializerGZIP( ); |
|
94 |
|
95 private: |
|
96 /** |
|
97 * Default output buffers size. |
|
98 */ |
|
99 static const TInt KOutputBufferSize = 4096; |
|
100 }; |
|
101 |
|
102 #endif /* XMLENGDESERIALIZER_GZIP__H */ |