Package com.biglybt.core.devices.impl
Class TranscodeFileImpl
java.lang.Object
com.biglybt.core.devices.impl.TranscodeFileImpl
- All Implemented Interfaces:
TranscodeFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DeviceImpl
private String
private static final String
private static final String
private static final String
private static final String
private static final String
protected static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final TagManager
Fields inherited from interface com.biglybt.core.devices.TranscodeFile
PT_CATEGORY, PT_COMPLETE, PT_COPIED, PT_COPY_FAILED, PT_TAGS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TranscodeFileImpl
(DeviceImpl _device, String _key, String _profile_name, Map<String, Map<String, ?>> _files_map, File _file, boolean _for_job) protected
TranscodeFileImpl
(DeviceImpl _device, String _key, Map<String, Map<String, ?>> _map) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
delete
(boolean delete_contents) protected void
boolean
protected boolean
getBoolean
(String key) String[]
long
long
long
long
getJob()
Will return null unless there is a job in existance for this fileprotected String
getKey()
protected long
getMap()
getMap
(boolean create) getName()
getStreamURL
(String host) protected String
protected String
String[]
getTags
(boolean localize) boolean
getTransientProperty
(Object key2) long
long
int
hashCode()
boolean
boolean
boolean
boolean
boolean
void
protected void
setBoolean
(String key, boolean b) protected void
setCacheFile
(File file) void
setCategories
(String[] cats) protected void
setComplete
(boolean b) protected void
setCopiedToDevice
(boolean b) void
setCopyingToDevice
(boolean b) protected void
protected void
protected void
protected void
protected void
setResolution
(int video_width, int video_height) protected void
protected void
void
protected void
setTranscodeRequired
(boolean required) void
setTransientProperty
(Object key2, Object value) protected void
update
(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, throws IOException?>> _map) - Throws:
IOException
-
-
Method Details
-
getKey
-
getName
- Specified by:
getName
in interfaceTranscodeFile
-
getDevice
- Specified by:
getDevice
in interfaceTranscodeFile
-
getJob
Description copied from interface:TranscodeFile
Will return null unless there is a job in existance for this file- Specified by:
getJob
in interfaceTranscodeFile
- Returns:
-
getCacheFile
- Throws:
TranscodeException
-
setCacheFile
-
checkDeleted
- Throws:
TranscodeException
-
getSourceFile
- Specified by:
getSourceFile
in interfaceTranscodeFile
- Throws:
TranscodeException
-
setSourceFile
-
getTargetFile
- Specified by:
getTargetFile
in interfaceTranscodeFile
- Throws:
TranscodeException
-
setTranscodeRequired
- Throws:
TranscodeException
-
getTranscodeRequired
public boolean getTranscodeRequired()- Specified by:
getTranscodeRequired
in interfaceTranscodeFile
-
setComplete
protected void setComplete(boolean b) -
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceTranscodeFile
-
isTemplate
public boolean isTemplate()- Specified by:
isTemplate
in interfaceTranscodeFile
-
setCopiedToDevice
protected void setCopiedToDevice(boolean b) -
setCopyToDeviceFailed
protected void setCopyToDeviceFailed() -
getCopyToDeviceFails
public long getCopyToDeviceFails()- Specified by:
getCopyToDeviceFails
in interfaceTranscodeFile
-
isCopiedToDevice
public boolean isCopiedToDevice()- Specified by:
isCopiedToDevice
in interfaceTranscodeFile
-
retryCopyToDevice
public void retryCopyToDevice()- Specified by:
retryCopyToDevice
in interfaceTranscodeFile
-
setProfileName
-
getProfileName
- Specified by:
getProfileName
in interfaceTranscodeFile
-
setCopyToFolderOverride
-
getCopyToFolderOverride
-
update
- Throws:
TranscodeException
-
setResolution
protected void setResolution(int video_width, int video_height) -
getDurationMillis
public long getDurationMillis()- Specified by:
getDurationMillis
in interfaceTranscodeFile
-
getVideoWidth
public long getVideoWidth()- Specified by:
getVideoWidth
in interfaceTranscodeFile
-
getVideoHeight
public long getVideoHeight()- Specified by:
getVideoHeight
in interfaceTranscodeFile
-
getEstimatedTranscodeSize
public long getEstimatedTranscodeSize()- Specified by:
getEstimatedTranscodeSize
in interfaceTranscodeFile
-
getCategories
- Specified by:
getCategories
in interfaceTranscodeFile
-
setCategories
- Specified by:
setCategories
in interfaceTranscodeFile
-
getTags
- Specified by:
getTags
in interfaceTranscodeFile
- Returns:
- if localize, returns localized name
if !localize, returns tag UIDs (long) as a String
-
setTags
- Specified by:
setTags
in interfaceTranscodeFile
-
getCreationDateMillis
public long getCreationDateMillis()- Specified by:
getCreationDateMillis
in interfaceTranscodeFile
-
getCacheFileIfExists
- Specified by:
getCacheFileIfExists
in interfaceTranscodeFile
-
getStreamURL
- Specified by:
getStreamURL
in interfaceTranscodeFile
-
getStreamURL
- Specified by:
getStreamURL
in interfaceTranscodeFile
-
getMimeType
-
delete
- Specified by:
delete
in interfaceTranscodeFile
- Throws:
TranscodeException
-
deleteCacheFile
- Throws:
TranscodeException
-
isDeleted
public boolean isDeleted()- Specified by:
isDeleted
in interfaceTranscodeFile
-
getMap
-
getMap
-
getBoolean
-
setBoolean
-
getLong
-
setLong
-
getString
-
setString
-
setTransientProperty
- Specified by:
setTransientProperty
in interfaceTranscodeFile
-
getTransientProperty
- Specified by:
getTransientProperty
in interfaceTranscodeFile
-
equals
-
hashCode
public int hashCode() -
getString
-
setCopyingToDevice
public void setCopyingToDevice(boolean b) -
isCopyingToDevice
public boolean isCopyingToDevice()- Specified by:
isCopyingToDevice
in interfaceTranscodeFile
-