Sha256: 3c59eece655a3b192bd9757058c3db3a4c55f9f8e9d7a187fd1219fa287aebde

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

package org.jrubyactiviti;

import java.io.InputStream;
import org.activiti.engine.ActivitiException;
import org.apache.commons.io.IOUtils;

public class StencilsetResource {
  public static String getStencilset() {
    InputStream stencilsetStream = StencilsetResource.class.getClassLoader().getResourceAsStream("stencilset.json");
    try {
      return IOUtils.toString(stencilsetStream, "utf-8");
    } catch (Exception e) {
      throw new ActivitiException("Error while loading stencil set", e);
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jruby_activiti-2.0.8 java/src/main/java/org/jrubyactiviti/StencilsetResource.java
jruby_activiti-2.0.7 java/src/main/java/org/jrubyactiviti/StencilsetResource.java
jruby_activiti-2.0.6 java/src/main/java/org/jrubyactiviti/StencilsetResource.java