Package com.sun.star.lib.uno.adapter

Examples of com.sun.star.lib.uno.adapter.OutputStreamToXOutputStreamAdapter


      throw new NOAException(
          Messages
              .getString("PersistenceService.error_filter_invalid_message")); //$NON-NLS-1$

    String filterDefinition = filter.getFilterDefinition(document);
    OutputStreamToXOutputStreamAdapter streamAdapter = new OutputStreamToXOutputStreamAdapter(
        outputStream);
    PropertyValue[] properties = new PropertyValue[2];
    properties[0] = new PropertyValue();
    properties[0].Name = "FilterName"; //$NON-NLS-1$
    properties[0].Value = filterDefinition;
View Full Code Here


   */
  private void storeInternal(OutputStream outputStream) throws Throwable {
    if (outputStream == null)
      return;

    OutputStreamToXOutputStreamAdapter stream = new OutputStreamToXOutputStreamAdapter(
        outputStream);

    PropertyValue[] initialPropertyValues = document.getInitialProperties();
    String filterDefinition = null;
    for (int i = 0; i < initialPropertyValues.length; i++) {
View Full Code Here

    if (filter == null || !filter.isSupported(document))
      throw new NOAException(Messages.getString("PersistenceService.error_filter_invalid_message")); //$NON-NLS-1$

    String filterDefinition = filter.getFilterDefinition(document);
    OutputStreamToXOutputStreamAdapter streamAdapter = new OutputStreamToXOutputStreamAdapter(outputStream);
    PropertyValue[] properties = new PropertyValue[2];
    properties[0] = new PropertyValue();
    properties[0].Name = "FilterName"; //$NON-NLS-1$
    properties[0].Value = filterDefinition;
    properties[1] = new PropertyValue("OutputStream", -1, streamAdapter, PropertyState.DIRECT_VALUE); //$NON-NLS-1$
View Full Code Here

   */
  private void storeInternal(OutputStream outputStream) throws Throwable {
    if (outputStream == null)
      return;

    OutputStreamToXOutputStreamAdapter stream = new OutputStreamToXOutputStreamAdapter(outputStream);

    PropertyValue[] initialPropertyValues = document.getInitialProperties();
    String filterDefinition = null;
    for (int i = 0; i < initialPropertyValues.length; i++) {
      if (initialPropertyValues[i].Name.equalsIgnoreCase("FilterName"))
View Full Code Here

    refreshDocument(document);
   
        Map/*<String,Object>*/ storeProperties = new HashMap();
        storeProperties.putAll(exportOptions);
        storeProperties.put("OutputStream", new OutputStreamToXOutputStreamAdapter(outputStream));
       
    try {
      XStorable storable = (XStorable) UnoRuntime.queryInterface(XStorable.class, document);
      storable.storeToURL("private:stream", toPropertyValues(storeProperties));
    } finally {
View Full Code Here

    refreshDocument(document);
   
        Map/*<String,Object>*/ storeProperties = new HashMap();
        storeProperties.putAll(exportOptions);
        storeProperties.put("OutputStream", new OutputStreamToXOutputStreamAdapter(outputStream));
       
    try {
      XStorable storable = (XStorable) UnoRuntime.queryInterface(XStorable.class, document);
      storable.storeToURL("private:stream", toPropertyValues(storeProperties));
    } finally {
View Full Code Here

    try {
      XStorable storable = (XStorable) UnoRuntime.queryInterface(XStorable.class, document);
      storable.storeToURL("private:stream", new PropertyValue[] {
        property("FilterName", filterName),
        property("FilterData", filterData),
        property("OutputStream", new OutputStreamToXOutputStreamAdapter(outputStream))
      });
    } finally {
      document.dispose();
    }
  }
View Full Code Here

TOP

Related Classes of com.sun.star.lib.uno.adapter.OutputStreamToXOutputStreamAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.