@Override public void build(@NotNull Project project, @NotNull Collection<FileObject> fileObjects) { Collection<InputStream> memoryCache = new ArrayList<>(); for (FileObject fileObject : fileObjects) { InputStream inputStream; try { // copy stream inputStream = new ResetOnCloseInputStream(new ByteArrayInputStream( IOUtils.getInputStreamBytes(fileObject.getContent().getInputStream())) ); } catch (FileSystemException ignored) { continue; } catch (IOException ignored) { continue; } memoryCache.add(inputStream); } storage = new ServiceParameterStorage(memoryCache); }
public PngWriter(Map params) { this.verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); }
public static String getDebug(String message, byte v[]) { final int max = 250; return getDebug(message, v, max); }
public final int findEndWithTerminator(byte bytes[], int index) throws UnicodeException { return findEnd(bytes, index, true); }
public static void copyStreamToStream(InputStream src, OutputStream dst) throws IOException { copyStreamToStream(src, dst, true); }
public static String getDebug(String message, byte v[]) { final int max = 250; return getDebug(message, v, max); }
public final int findEndWithTerminator(byte bytes[], int index) throws UnicodeException { return findEnd(bytes, index, true); }
public PngWriter(Map params) { this.verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); }
public static void copyStreamToStream(InputStream src, OutputStream dst) throws IOException { copyStreamToStream(src, dst, true); }
public static String getDebug(String message, String value) { return getDebug(message + " " + value); }
public final int findEndWithoutTerminator(byte bytes[], int index) throws UnicodeException { return findEnd(bytes, index, false); }
public static void debug(String message, boolean value) { debug(message + " " + ((value) ? ("true") : ("false"))); }
public static String getDebug(String message, boolean value) { return getDebug(message + " " + ((value) ? ("true") : ("false"))); }
public final int findEndWithoutTerminator(byte bytes[], int index) throws UnicodeException { return findEnd(bytes, index, false); }
public static void debug(String message, double value) { debug(message + ": " + (value)); }
public static void debug(String message, int value) { debug(message + ": " + (value)); }