fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / udkapi / com / sun / star / io / ObjectInputStream.idl
blob02f9faac475704ec3f229cbf32c4e8bd81937146
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_io_ObjectInputStream_idl__
20 #define __com_sun_star_io_ObjectInputStream_idl__
22 #include <com/sun/star/io/XObjectInputStream.idl>
24 #include <com/sun/star/io/XActiveDataSink.idl>
26 #include <com/sun/star/io/XConnectable.idl>
28 #include <com/sun/star/io/XMarkableStream.idl>
32 module com { module sun { module star { module io {
34 /** is a stream which allows reading the data of persistent objects.
36 <p>Implementations of this service must fulfill the specifications of the
37 DataInputStream service. It must be chained to an
38 XMarkableStream. Therefore, it provides the
39 XMarkableStream interface, and delegates the calls to the
40 chained object. </p>
41 <p>The written objects are held until this instance is destroyed.
42 The references to the objects are read as four-byte integers.
43 Data format reads:</p>
45 <pre>
46 short InfoLength
47 long ObjectReference // 0 indicates no object
48 UTF ServiceName // length of 0 indicates this is only a reference
49 long ObjectLength // 0 if it is a reference or no object, otherwise the len of the object data
50 Object ObjectData // the data of the object
51 ... // skipping additional data
52 </pre>
54 @note
55 <ul>
56 <li>-thread safe</li>
57 <li>-allow buffer size is 2 ^ 31 -1</li>
58 <li>-maximum object reference identifier must be the number of objects. </li>
59 <li>-object reference identifier 0 indicates no object</li>
60 <li>-skip addition data</li>
61 <li>-set the stream position behind the object data</li>
62 </ul>
64 published service ObjectInputStream
66 /** allows to read the data from the stream.
68 interface com::sun::star::io::XObjectInputStream;
70 /** allows to set the underlying inputstream */
71 interface com::sun::star::io::XActiveDataSink;
73 /** allows to navigate via a chain of streams */
74 interface com::sun::star::io::XConnectable;
76 /** allows to set marks within the stream. The implementation
77 may forward calls to this interface to a chained markablestream. */
78 interface com::sun::star::io::XMarkableStream;
83 }; }; }; };
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */