@Override public IConverter build() { return new LocalConverter(normalizedBaseFolder(), corePoolSize, maximumPoolSize, keepAliveTime, processTimeout, TimeUnit.MILLISECONDS, converterConfiguration); }
@Override public int compareTo(Runnable other) { // Note: The PriorityBlockingQueue expects an implementation of Comparable<Runnable>. // Therefore we cast the compared instance explicitly, relying on no other types // are inserted into the PriorityBlockingQueue. This exception is wanted since this // scenario should never occur. return priority.compareTo(((AbstractFutureWrappingPriorityFuture) other).getPriority()); }
@Override public IConversionJobWithTargetUnspecified to(IInputStreamConsumer callback) { return new ImpossibleConversionJobWithTargetUnspecified(new InputStreamConsumerExceptionCallback(callback)); } }
@Override public IConversionJobWithSourceUnspecified convert(IInputStreamSource source) { return convert(new FileSourceFromInputStreamSource(source, makeTemporaryFile())); }
@Override public IConversionJobWithSourceUnspecified convert(InputStream source, boolean close) { return convert(new InputStreamSourceFromInputStream(source, close)); }
@Override public IConversionJobWithTargetUnspecified to(File target) { return to(target, new NoopFileConsumer()); }
@Override public IConversionJobWithTargetUnspecified to(File target) { return to(target, new NoopFileConsumer()); }
@Override public IConversionJobWithSourceUnspecified convert(InputStream source, boolean close) { return convert(new InputStreamSourceFromInputStream(source, close)); }
@Override public IConversionJobWithSourceUnspecified convert(File source) { return convert(new FileSourceFromFile(source)); }
@Override public IConversionJobWithTargetUnspecified to(OutputStream target, boolean closeStream) { return to(new OutputStreamToInputStreamConsumer(target, closeStream)); }
@Override public IConversionJobWithTargetUnspecified to(File target) { return to(target, new NoopFileConsumer()); }
@Override public IConversionJobWithTargetUnspecified to(OutputStream target, boolean closeStream) { return to(new OutputStreamToInputStreamConsumer(target, closeStream)); }
@Override public IConversionJobWithTargetUnspecified to(OutputStream target, boolean closeStream) { return to(new OutputStreamToInputStreamConsumer(target, closeStream)); }
@Override public IConversionJobWithTargetUnspecified to(IInputStreamConsumer callback) { return to(makeTemporaryFile(PDF_FILE_EXTENSION), new InputStreamConsumerToFileConsumer(callback)); }
@Override public IConversionJobWithTargetUnspecified to(File target) { return new ImpossibleConversionJobWithTargetUnspecified(new NoOpExceptionCallback()); }
@Override public IConversionJobWithTargetUnspecified to(File target, IFileConsumer callback) { return new ImpossibleConversionJobWithTargetUnspecified(new FileConsumerExceptionCallback(target, callback)); }
@Override public IConversionJobWithTargetUnspecified to(OutputStream target) { return new ImpossibleConversionJobWithTargetUnspecified(new NoOpExceptionCallback()); }