Class TranscodeFileImpl
java.lang.Object
com.biglybt.core.devices.impl.TranscodeFileImpl
- All Implemented Interfaces:
TranscodeFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DeviceImplprivate Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprotected static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final TagManagerFields inherited from interface TranscodeFile
PT_CATEGORY, PT_COMPLETE, PT_COPIED, PT_COPY_FAILED, PT_TAGS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTranscodeFileImpl(DeviceImpl _device, String _key, String _profile_name, Map<String, Map<String, ?>> _files_map, File _file, boolean _for_job) protectedTranscodeFileImpl(DeviceImpl _device, String _key, Map<String, Map<String, ?>> _map) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddelete(boolean delete_contents) protected voidbooleanprotected booleangetBoolean(String key) String[]longlonglonglonggetJob()Will return null unless there is a job in existance for this fileprotected StringgetKey()protected longgetMap()getMap(boolean create) getName()getStreamURL(String host) protected Stringprotected StringString[]getTags(boolean localize) booleangetTransientProperty(Object key2) longlonginthashCode()booleanbooleanbooleanbooleanbooleanvoidprotected voidsetBoolean(String key, boolean b) protected voidsetCacheFile(File file) voidsetCategories(String[] cats) protected voidsetComplete(boolean b) protected voidsetCopiedToDevice(boolean b) voidsetCopyingToDevice(boolean b) protected voidprotected voidprotected voidprotected voidprotected voidsetResolution(int video_width, int video_height) protected voidprotected voidvoidprotected voidsetTranscodeRequired(boolean required) voidsetTransientProperty(Object key2, Object value) protected voidupdate(TranscodeProviderAnalysis analysis)
-
Field Details
-
KEY_FILE
- See Also:
-
tag_manager
-
KEY_PROFILE_NAME
- See Also:
-
KEY_SOURCE_FILE_HASH
- See Also:
-
KEY_SOURCE_FILE_INDEX
- See Also:
-
KEY_SOURCE_FILE_LINK
- See Also:
-
KEY_NO_XCODE
- See Also:
-
KEY_FOR_JOB
- See Also:
-
KEY_DURATION
- See Also:
-
KEY_VIDEO_WIDTH
- See Also:
-
KEY_VIDEO_HEIGHT
- See Also:
-
KEY_XCODE_SIZE
- See Also:
-
KEY_DATE
- See Also:
-
KEY_CATEGORIES
- See Also:
-
KEY_TAGS
- See Also:
-
KEY_COPY_TO_OVERRIDE
- See Also:
-
KEY_COPYING
- See Also:
-
device
-
key
-
files_map
-
-
Constructor Details
-
TranscodeFileImpl
-
TranscodeFileImpl
protected TranscodeFileImpl(DeviceImpl _device, String _key, Map<String, Map<String, ?>> _map) throws IOException- Throws:
IOException
-
-
Method Details
-
getKey
-
getName
- Specified by:
getNamein interfaceTranscodeFile
-
getDevice
- Specified by:
getDevicein interfaceTranscodeFile
-
getJob
Description copied from interface:TranscodeFileWill return null unless there is a job in existance for this file- Specified by:
getJobin interfaceTranscodeFile- Returns:
-
getCacheFile
- Throws:
TranscodeException
-
setCacheFile
-
checkDeleted
- Throws:
TranscodeException
-
getSourceFile
- Specified by:
getSourceFilein interfaceTranscodeFile- Throws:
TranscodeException
-
setSourceFile
-
getTargetFile
- Specified by:
getTargetFilein interfaceTranscodeFile- Throws:
TranscodeException
-
setTranscodeRequired
- Throws:
TranscodeException
-
getTranscodeRequired
public boolean getTranscodeRequired()- Specified by:
getTranscodeRequiredin interfaceTranscodeFile
-
setComplete
protected void setComplete(boolean b) -
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceTranscodeFile
-
isTemplate
public boolean isTemplate()- Specified by:
isTemplatein interfaceTranscodeFile
-
setCopiedToDevice
protected void setCopiedToDevice(boolean b) -
setCopyToDeviceFailed
protected void setCopyToDeviceFailed() -
getCopyToDeviceFails
public long getCopyToDeviceFails()- Specified by:
getCopyToDeviceFailsin interfaceTranscodeFile
-
isCopiedToDevice
public boolean isCopiedToDevice()- Specified by:
isCopiedToDevicein interfaceTranscodeFile
-
retryCopyToDevice
public void retryCopyToDevice()- Specified by:
retryCopyToDevicein interfaceTranscodeFile
-
setProfileName
-
getProfileName
- Specified by:
getProfileNamein interfaceTranscodeFile
-
setCopyToFolderOverride
-
getCopyToFolderOverride
-
update
- Throws:
TranscodeException
-
setResolution
protected void setResolution(int video_width, int video_height) -
getDurationMillis
public long getDurationMillis()- Specified by:
getDurationMillisin interfaceTranscodeFile
-
getVideoWidth
public long getVideoWidth()- Specified by:
getVideoWidthin interfaceTranscodeFile
-
getVideoHeight
public long getVideoHeight()- Specified by:
getVideoHeightin interfaceTranscodeFile
-
getEstimatedTranscodeSize
public long getEstimatedTranscodeSize()- Specified by:
getEstimatedTranscodeSizein interfaceTranscodeFile
-
getCategories
- Specified by:
getCategoriesin interfaceTranscodeFile
-
setCategories
- Specified by:
setCategoriesin interfaceTranscodeFile
-
getTags
- Specified by:
getTagsin interfaceTranscodeFile- Returns:
- if localize, returns localized name
if !localize, returns tag UIDs (long) as a String
-
setTags
- Specified by:
setTagsin interfaceTranscodeFile
-
getCreationDateMillis
public long getCreationDateMillis()- Specified by:
getCreationDateMillisin interfaceTranscodeFile
-
getCacheFileIfExists
- Specified by:
getCacheFileIfExistsin interfaceTranscodeFile
-
getStreamURL
- Specified by:
getStreamURLin interfaceTranscodeFile
-
getStreamURL
- Specified by:
getStreamURLin interfaceTranscodeFile
-
getMimeType
-
delete
- Specified by:
deletein interfaceTranscodeFile- Throws:
TranscodeException
-
deleteCacheFile
- Throws:
TranscodeException
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceTranscodeFile
-
getMap
-
getMap
-
getBoolean
-
setBoolean
-
getLong
-
setLong
-
getString
-
setString
-
setTransientProperty
- Specified by:
setTransientPropertyin interfaceTranscodeFile
-
getTransientProperty
- Specified by:
getTransientPropertyin interfaceTranscodeFile
-
equals
-
hashCode
-
getString
-
setCopyingToDevice
public void setCopyingToDevice(boolean b) -
isCopyingToDevice
public boolean isCopyingToDevice()- Specified by:
isCopyingToDevicein interfaceTranscodeFile
-