Beispiel #1
0
  @Override
  public byte[] loadFile(final Path file) throws FileException {

    checkNotNull("file", file);

    try {
      return ioService.readAllBytes(file);
    } catch (IOException ex) {
      throw new FileException(ex.getMessage(), ex);
    }
  }
Beispiel #2
0
  @Override
  public byte[] loadFile(final String path) throws FileException {
    Path file = ioService.get("git://jbpm-playground/" + path);

    checkNotNull("file", file);

    try {
      return ioService.readAllBytes(file);
    } catch (IOException ex) {
      throw new FileException(ex.getMessage(), ex);
    }
  }