- private static void drainInputStream(InputStream inputStream) throws IOException {
- byte[] buffer = new byte[4096];
- int read;
- while ((read = inputStream.read(buffer)) != -1) {
- logger.finest(String.format("ExternalFilter: Drained %d Bytes.", read));
- /* do nothing, just read the damn thing. */
- }
- }
+ /**
+ * Returns the location of the binary to execute.
+ *
+ * @param format
+ * The format being processed
+ * @return The location of the binary to execute
+ */
+ protected abstract String binary(Format format);
+
+ /**
+ * Returns the parameters for the binary.
+ *
+ * @param format
+ * The format being processed
+ * @return The parameters for the binary
+ */
+ protected abstract Iterable<String> parameters(Format format);