diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-03-26 15:04:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-05-06 14:48:21 +0200 |
commit | 35518c92365cc183ba6cce2a4d284a130c0ca13f (patch) | |
tree | f3de8bdec6331ce933126336cf701dcaffe9b662 /javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java | |
parent | make screenshot build failure (diff) | |
download | core-35518c92365cc183ba6cce2a4d284a130c0ca13f.tar.gz core-35518c92365cc183ba6cce2a4d284a130c0ca13f.zip |
Move all public Java classes to libreoffice.jar
This moves the classes from juh.jar and ridl.jar to libreoffice.jar
The goal is to have one single jar (and Java module, will be added later)
which developers can include to work with LO.
juh.jar and ridl.jar are kept as basically empty jars with libreoffice.jar
on its classpath to keep backwards compatibility.
This is a continuation of ae855bf48163ff64d94cfc34aff8e37abdb5518d
and a preparation to have Java 9 module support.
Change-Id: Ifbbfb97f60373d14256e62ae3122913bd17d5bbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91930
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java deleted file mode 100644 index 2842e3df05ce..000000000000 --- a/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -package com.sun.star.lib.uno.adapter; - -import java.io.IOException; - -import com.sun.star.io.XOutputStream; - -import java.io.OutputStream; - -/** The <code>OutputStreamToXOutputStreamAdapter</code> wraps - a UNO <code>XOutputStream</code> into a Java <code>OutputStream</code> - object in a Java. This allows users to access an <code>OutputStream</code> - as if it were an <code>XOutputStream</code>. - */ -public final class OutputStreamToXOutputStreamAdapter implements XOutputStream { - - /** - * Internal handle to the OutputStream - */ - OutputStream iOut; - - /** - * Constructor. - * - * @param out The <code>XOutputStream</code> to be - * accessed as an <code>OutputStream</code>. - */ - public OutputStreamToXOutputStreamAdapter(OutputStream out) { - iOut = out; - } - - public void closeOutput() throws - com.sun.star.io.IOException - { - try { - iOut.close(); - } catch (IOException e) { - throw new com.sun.star.io.IOException(e); - } - } - - public void flush() throws - com.sun.star.io.IOException - { - try { - iOut.flush(); - } catch (IOException e) { - throw new com.sun.star.io.IOException(e); - } - } - - public void writeBytes(byte[] b) throws - com.sun.star.io.IOException - { - - try { - iOut.write(b); - } catch (IOException e) { - throw new com.sun.star.io.IOException(e); - } - } - -} |