Example usage for org.apache.commons.transaction.file FileResourceManager writeResource

List of usage examples for org.apache.commons.transaction.file FileResourceManager writeResource

Introduction

In this page you can find the example usage for org.apache.commons.transaction.file FileResourceManager writeResource.

Prototype

public OutputStream writeResource(Object txId, Object resourceId) throws ResourceManagerException 

Source Link

Usage

From source file:com.anrisoftware.globalpom.fileresourcemanager.ResourceSaver.java

private void saveResource(FileResourceManager manager, String id, Resource resource)
        throws ResourceManagerException, FileResourceException {
    String projectId = resource.getName();
    OutputStream projectStream = manager.writeResource(id, projectId);
    saveResource(projectStream, resource);
}