final OutputStream outStream = bundle.createEntry( targetPath, contentType ); try { IOUtils.getInstance().copyStreams( stream, outStream );
final InputStream in = resourceData.getResourceAsStream( sourceManager ); try { final OutputStream out = documentBundle.createEntry( name, mimeType ); try { IOUtils.getInstance().copyStreams( in, out );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); final XmlWriter xmlWriter =
public String writeReport( final WriteableDocumentBundle bundle, final BundleWriterState state ) throws IOException, BundleWriterException { if ( bundle == null ) { throw new NullPointerException(); } if ( state == null ) { throw new NullPointerException(); } final OutputStream outputStream = new BufferedOutputStream( bundle.createEntry( "settings.xml", "text/xml" ) ); final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription(); final XmlWriter writer = new XmlWriter( new OutputStreamWriter( outputStream, "UTF-8" ), tagDescription, " ", "\n" ); writer.writeXmlDeclaration( "UTF-8" ); final AttributeList rootAttributes = new AttributeList(); rootAttributes.addNamespaceDeclaration( "", BundleNamespaces.SETTINGS ); writer.writeTag( BundleNamespaces.SETTINGS, "settings", rootAttributes, XmlWriterSupport.OPEN ); writeConfiguration( state, writer ); writeRuntimeInformation( state, writer ); writer.writeCloseTag(); writer.close(); return "settings.xml"; }
new BufferedOutputStream( bundle.createEntry( contentState.getFileName(), "text/xml" ) ); final MasterReport report = state.getMasterReport(); final DataSchemaDefinition definition = report.getDataSchemaDefinition();
throw new IOException( "Unable to generate unique name for the direct Static-Data-Source" ); final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); tagDescription.setNamespaceHasCData( StaticDataFactoryModule.NAMESPACE, false );
final BundleWriterState layoutFileState = new BundleWriterState( state, "layout.xml" ); final OutputStream outputStream = new BufferedOutputStream( bundle.createEntry( layoutFileState.getFileName(), "text/xml" ) ); final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription(); final XmlWriter writer =
new BufferedOutputStream( bundle.createEntry( contentFileState.getFileName(), "text/xml" ) ); final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription(); final XmlWriter writer =
targetBundle.createDirectoryEntry( entryName, entryMimeType ); } else { final OutputStream dataStream = targetBundle.createEntry( entryName, entryMimeType ); try { final InputStream inStream = sourceBundle.getEntryAsStream( entryName );
continue; } else { final OutputStream dataStream = targetBundle.createEntry( entryName, entryMimeType ); try { final InputStream inStream = sourceBundle.getEntryAsStream( entryName );
continue; } else { final OutputStream dataStream = targetBundle.createEntry( entryName, entryMimeType ); try { final InputStream inStream = sourceBundle.getEntryAsStream( entryName );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); tagDescription.setDefaultNamespace( CompoundDataFactoryModule.NAMESPACE );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); tagDescription.setNamespaceHasCData( StaticDataFactoryModule.NAMESPACE, false );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); tagDescription.setNamespaceHasCData( SequenceDataFactoryModule.NAMESPACE, false );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" ); final DefaultTagDescription tagDescription = new DefaultTagDescription(); tagDescription.setNamespaceHasCData( InlineDataFactoryModule.NAMESPACE, false );
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" );
new BufferedOutputStream( bundle.createEntry( contentState.getFileName(), "text/xml" ) ); final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription(); final XmlWriter writer =
new BufferedOutputStream( bundle.createEntry( styleFileState.getFileName(), "text/xml" ) ); final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription(); final XmlWriter writer =
final OutputStream outputStream = bundle.createEntry( fileName, "text/xml" );