Examples of ManifestCopyingParser


Examples of org.formulacompiler.spreadsheet.internal.odf.saver.copying.ManifestCopyingParser

    while ((zipEntry = zipInputStream.getNextEntry()) != null) {
      final String name = zipEntry.getName();
      if (MANIFEST_XML.equals( name )) {
        try {
          _zipOutputStream.putNextEntry( new ZipEntry( name ) );
          final CopyingParser parser = new ManifestCopyingParser();
          parser.copy( inputStream, _zipOutputStream );
          _zipOutputStream.closeEntry();
        }
        catch (XMLStreamException e) {
          final Throwable nestedException = e.getNestedException();
          if (nestedException != null) {
            e.initCause( nestedException );
          }
          throw new SpreadsheetException.SaveError( e );
        }

      }
      else if (STYLES_XML.equals( name )) {
        try {
          _zipOutputStream.putNextEntry( new ZipEntry( name ) );
          final CopyingParser parser = new StylesCopyingParser( _styles );
          parser.copy( inputStream, _zipOutputStream );
          _zipOutputStream.closeEntry();
        }
        catch (XMLStreamException e) {
          final Throwable nestedException = e.getNestedException();
          if (nestedException != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.