public String rename(final String originalName, final InputStream inputStream) throws IOException { return getConfiguredStrategy().rename(originalName, inputStream); }
public String rename(final String originalName, final InputStream inputStream) throws IOException { return getConfiguredStrategy().rename(originalName, inputStream); }
/** * Encodes a version using some logic. * * @param group * the name of the resource to encode. * @param input * the stream of the result content. * @return the name of the resource with the version encoded. */ private String rename(final String group, final InputStream input) throws Exception { try { final String newName = getManagerFactory().create().getNamingStrategy().rename(group, input); groupNames.setProperty(group, newName); return newName; } catch (final IOException e) { throw new MojoExecutionException("Error occured during renaming", e); } }
/** * Encodes a version using some logic. * * @param group * the name of the resource to encode. * @param input * the stream of the result content. * @return the name of the resource with the version encoded. */ private String rename(final String group, final InputStream input) throws Exception { try { final String newName = getManagerFactory().create().getNamingStrategy().rename(group, input); groupNames.setProperty(group, newName); return newName; } catch (final IOException e) { throw new MojoExecutionException("Error occured during renaming", e); } }
/** * Encodes a version using some logic. * * @param group * the name of the resource to encode. * @param input * the stream of the result content. * @return the name of the resource with the version encoded. */ private String rename(final String group, final InputStream input) throws IOException { return getManagerFactory().create().getNamingStrategy().rename(group, input); }