1*d4cc1e8cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*d4cc1e8cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*d4cc1e8cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*d4cc1e8cSAndrew Rist  * distributed with this work for additional information
6*d4cc1e8cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*d4cc1e8cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*d4cc1e8cSAndrew Rist  * "License"); you may not use this file except in compliance
9*d4cc1e8cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*d4cc1e8cSAndrew Rist  *
11*d4cc1e8cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*d4cc1e8cSAndrew Rist  *
13*d4cc1e8cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*d4cc1e8cSAndrew Rist  * software distributed under the License is distributed on an
15*d4cc1e8cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d4cc1e8cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*d4cc1e8cSAndrew Rist  * specific language governing permissions and limitations
18*d4cc1e8cSAndrew Rist  * under the License.
19*d4cc1e8cSAndrew Rist  *
20*d4cc1e8cSAndrew Rist  *************************************************************/
21*d4cc1e8cSAndrew Rist 
22*d4cc1e8cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir package com.sun.star.comp.beans;
25cdf0e10cSrcweir 
26cdf0e10cSrcweir import com.sun.star.connection.XConnection;
27cdf0e10cSrcweir 
28cdf0e10cSrcweir /* Connection to a locally running OOo instance.
29cdf0e10cSrcweir  *
30cdf0e10cSrcweir  * @deprecated.
31cdf0e10cSrcweir  */
32cdf0e10cSrcweir /* package */ class NativeConnection
33cdf0e10cSrcweir 	implements XConnection
34cdf0e10cSrcweir {
connect(NativeService aNativeService)35cdf0e10cSrcweir 	public native void connect(NativeService aNativeService)
36cdf0e10cSrcweir 		throws com.sun.star.io.IOException;
37cdf0e10cSrcweir 
read( byte[][] aReadBytes, int nBytesToRead)38cdf0e10cSrcweir 	public native int read(/*OUT*/byte[][] aReadBytes, /*IN*/int nBytesToRead)
39cdf0e10cSrcweir 		throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException;
40cdf0e10cSrcweir 
write( byte[] aData)41cdf0e10cSrcweir 	public native void write(/*IN*/byte[] aData)
42cdf0e10cSrcweir 		throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException;
43cdf0e10cSrcweir 
flush()44cdf0e10cSrcweir 	public native void flush()
45cdf0e10cSrcweir 		throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException;
46cdf0e10cSrcweir 
close()47cdf0e10cSrcweir 	public native void close()
48cdf0e10cSrcweir 		throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException;
49cdf0e10cSrcweir 
getDescription()50cdf0e10cSrcweir 	public synchronized String getDescription()
51cdf0e10cSrcweir 		throws com.sun.star.uno.RuntimeException
52cdf0e10cSrcweir 	{
53cdf0e10cSrcweir 		return Description;
54cdf0e10cSrcweir 	}
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	private long	NativeHandle;
57cdf0e10cSrcweir 	private String	Description;
58cdf0e10cSrcweir }
59