public static class FfmpegInputStreamReaderThreadFactory.FfmpegInputStreamReaderThread
extends org.gytheio.util.exec.RuntimeExec.InputStreamReaderThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isFfmpegVersion1 |
protected org.gytheio.content.transform.ContentTransformerWorkerProgressReporter |
progressReporter |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
FfmpegInputStreamReaderThreadFactory.FfmpegInputStreamReaderThread(InputStream is,
Charset charset,
org.gytheio.content.transform.ContentTransformerWorkerProgressReporter progressReporter,
boolean isFfmpegVersion1) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getTotalSeconds(String timeHHmmss)
Gets the total seconds from the given HH:mm:ss formatted string
|
protected void |
processBytes(byte[] bytes,
int count) |
protected void |
read(InputStream inputStream)
Checks the given input stream for progress data and
if present reports it via the progressReporter if sufficient time has
past since the last report.
|
addToBuffer, getBuffer, isComplete, run, waitForCompletionactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected org.gytheio.content.transform.ContentTransformerWorkerProgressReporter progressReporter
protected boolean isFfmpegVersion1
public FfmpegInputStreamReaderThreadFactory.FfmpegInputStreamReaderThread(InputStream is, Charset charset, org.gytheio.content.transform.ContentTransformerWorkerProgressReporter progressReporter, boolean isFfmpegVersion1)
protected void processBytes(byte[] bytes,
int count)
throws UnsupportedEncodingException
processBytes in class org.gytheio.util.exec.RuntimeExec.InputStreamReaderThreadUnsupportedEncodingExceptionprotected double getTotalSeconds(String timeHHmmss)
timeHHmmss - protected void read(InputStream inputStream)
inputStream - Copyright © 2017 Alfresco Software. All rights reserved.