equal
deleted
inserted
replaced
|
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 XOP serializer Output Stream |
|
15 // |
|
16 |
|
17 #include <bafl/sysutil.h> |
|
18 #include "xmlengxopproxyoutputstream.h" |
|
19 |
|
20 TXmlEngSXOPProxyOutputStream::TXmlEngSXOPProxyOutputStream(MXmlEngOutputStream& aStream) |
|
21 : iError(KErrNone) |
|
22 { |
|
23 iStream = &aStream; |
|
24 } |
|
25 |
|
26 TInt TXmlEngSXOPProxyOutputStream::Write(const TDesC8& aBuffer) |
|
27 { |
|
28 iError = iStream->Write(aBuffer); |
|
29 return iError; |
|
30 } |
|
31 |
|
32 TInt TXmlEngSXOPProxyOutputStream::Close() |
|
33 { |
|
34 return KErrNone; |
|
35 } |
|
36 |
|
37 TInt TXmlEngSXOPProxyOutputStream::CloseAll() |
|
38 { |
|
39 return iStream->Close(); |
|
40 } |
|
41 |
|
42 TInt TXmlEngSXOPProxyOutputStream::CheckError() |
|
43 { |
|
44 return iError; |
|
45 } |
|
46 |
|
47 |