<html> <head> <title>Interface XDataSinkEncrSupport</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="XDataSinkEncrSupport-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td> <td class="navisub">Attributes' Summary</td> <td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td> <td class="navisub">Attributes' Details</td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">packages</a> :: </p> </td> </tr> <tr> <td class="title"><table class="title-table" width="99%"> <tr> <td width="25%" class="title2">unpublished </td> <td width="50%" class="title">interface XDataSinkEncrSupport</td> <td width="*"/></tr> </table> </td> </tr> <tr> <td/></tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Allows to get access to the stream of a <a href="PackageStream.html">PackageStream</a>. </dd> </dl> </td> </tr> </table> <hr> <a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Methods' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#getDataStream">getDataStream</a></td> <td class="imsum_right">Allows to get access to the data of the PackageStream. </td> </tr> <tr> <td class="imsum_left"><a href="#getRawStream">getRawStream</a></td> <td class="imsum_right">Allows to get access to the data of the PackageStream as to raw stream. In case stream is not encrypted an exception will be thrown. </td> </tr> <tr> <td class="imsum_left"><a href="#setDataStream">setDataStream</a></td> <td class="imsum_right">Allows to set a data stream for the PackageStream. </td> </tr> <tr> <td class="imsum_left"><a href="#setRawStream">setRawStream</a></td> <td class="imsum_right">Allows to set raw stream for the PackageStream. The PackageStream object can not be marked as encrypted one, an exception will be thrown in such case. </td> </tr> <tr> <td class="imsum_left"><a href="#getPlainRawStream">getPlainRawStream</a></td> <td class="imsum_right">Allows to get access to the raw data of the stream as it is stored in the package. </td> </tr> </table> <a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Methods' Details</td> </tr> <tr> <td class="imdetail"><a name="getDataStream" class="membertitle">getDataStream</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a></td> </tr> <tr> <td valign="top"><b>getDataStream</b>()</td> </tr> <tr> <td valign="top" align="right">raises( </td> <td valign="top" colspan="2"><a href="WrongPasswordException.html">WrongPasswordException</a>,<br> ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/IOException.html">IOException</a> );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Allows to get access to the data of the PackageStream. </dd> <dd><p> In case stream is encrypted one and the key for the stream is not set, an exception must be thrown. </p> </dd> <dt><b>Returns</b></dt> <dd>the stream </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::packages::WrongPasswordException no key or a wrong one is set </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::io::IOException in case of io problems during retrieving </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getRawStream" class="membertitle">getRawStream</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a></td> </tr> <tr> <td valign="top"><b>getRawStream</b>()</td> </tr> <tr> <td valign="top" align="right">raises( </td> <td valign="top" colspan="2"><a href="NoEncryptionException.html">NoEncryptionException</a>,<br> ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/IOException.html">IOException</a> );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Allows to get access to the data of the PackageStream as to raw stream. In case stream is not encrypted an exception will be thrown. </dd> <dd><p> The difference of raw stream is that it contains header for encrypted data, so an encrypted stream can be copyed from one PackageStream to another one without decryption. </p> </dd> <dt><b>Returns</b></dt> <dd>the raw representation of stream </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::packages::NoEncryptionException the PackageStream object is not encrypted </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::io::IOException in case of io problems during retrieving </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="setDataStream" class="membertitle">setDataStream</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">void</td> </tr> <tr> <td valign="top"><b>setDataStream</b>(</td> <td valign="top">[in] ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a></td> <td valign="bottom"> aStream )</td> </tr> <tr> <td valign="top" align="right">raises( </td> <td valign="top" colspan="2">::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/IOException.html">IOException</a> );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Allows to set a data stream for the PackageStream. </dd> <dd><p> In case PackageStream is marked as encrypted the data stream will be encrypted on storing. </p> </dd> <dt><b>Parameter aStream</b></dt> <dd>new data stream </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::io::IOException in case of io problems </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="setRawStream" class="membertitle">setRawStream</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">void</td> </tr> <tr> <td valign="top"><b>setRawStream</b>(</td> <td valign="top">[in] ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a></td> <td valign="bottom"> aStream )</td> </tr> <tr> <td valign="top" align="right">raises( </td> <td valign="top" colspan="2"><a href="EncryptionNotAllowedException.html">EncryptionNotAllowedException</a>,<br> <a href="NoRawFormatException.html">NoRawFormatException</a>,<br> ::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/IOException.html">IOException</a> );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Allows to set raw stream for the PackageStream. The PackageStream object can not be marked as encrypted one, an exception will be thrown in such case. </dd> <dt><b>Parameter aStream</b></dt> <dd>the new raw representation of stream </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::packages::EncryptionNotAllowedException the PackageStream object is marked as encrypted </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::packages::NoRawFormatException the stream is not a correct raw representation of encrypted package stream </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::io::IOException in case of io problems during retrieving </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getPlainRawStream" class="membertitle">getPlainRawStream</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/XInputStream.html">XInputStream</a></td> </tr> <tr> <td valign="top"><b>getPlainRawStream</b>()</td> </tr> <tr> <td valign="top" align="right">raises( </td> <td valign="top" colspan="2">::com::sun::star::<a href="../io/module-ix.html">io</a>::<a href="../io/IOException.html">IOException</a> );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Allows to get access to the raw data of the stream as it is stored in the package. </dd> <dt><b>Returns</b></dt> <dd>the plain raw stream as it is stored in the package </dd> <dt><b>Throws</b></dt> <dd>::com::sun::star::io::IOException in case of io problems during retrieving </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2009 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>