Package com.biglybt.core.devices.impl
Class DeviceImpl
- java.lang.Object
-
- com.biglybt.core.devices.impl.DeviceImpl
-
- All Implemented Interfaces:
Device
- Direct Known Subclasses:
DeviceUPnPImpl
public abstract class DeviceImpl extends java.lang.Object implements Device
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DeviceImpl.browseLocationImpl
-
Nested classes/interfaces inherited from interface com.biglybt.core.devices.Device
Device.browseLocation
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
auto_hidden
private static TranscodeProfile
blank_profile
private int
busy_count
private boolean
can_remove
private java.lang.String
classification
(package private) java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>>
device_files
(package private) boolean
device_files_dirty
(package private) long
device_files_last_mod
private java.lang.ref.WeakReference<java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>>>
device_files_ref
private CopyOnWriteList<DeviceListener>
device_listeners
private static java.util.List<java.util.regex.Pattern>
device_renames
private java.util.Map<java.lang.Object,java.lang.String>
errors
private static java.lang.String
GENERIC
private boolean
hidden
private java.lang.String
image_id
private java.util.Map<java.lang.Object,java.lang.String>
infos
private boolean
isGenericUSB
private boolean
isNameAutomatic
private static java.lang.Object
KEY_FILE_ALLOC_ERROR
private long
last_seen
private CopyOnWriteList<TranscodeTargetListener>
listeners
private DeviceManagerImpl
manager
private boolean
manual
private static java.lang.String
MY_PACKAGE
private java.lang.String
name
private boolean
online
private java.util.Map<java.lang.String,java.lang.Object>
persistent_properties
protected static java.lang.String
PP_AUTO_COPY
protected static boolean
PP_AUTO_COPY_DEFAULT
protected static java.lang.String
PP_AUTO_START
protected static java.lang.String
PP_COPY_OUTSTANDING
protected static java.lang.String
PP_COPY_TO_FOLDER
protected static java.lang.String
PP_DONT_AUTO_HIDE
protected static java.lang.String
PP_EXPORTABLE
protected static java.lang.String
PP_FILTER_FILES
protected static java.lang.String
PP_IP_ADDRESS
protected static java.lang.String
PP_LIVENESS_DETECTABLE
protected static java.lang.String
PP_OD_ENABLED
protected static java.lang.String
PP_OD_MANUFACTURER
protected static java.lang.String
PP_OD_SHOWN_FTUX
protected static java.lang.String
PP_OD_STATE_CACHE
protected static java.lang.String
PP_OD_UPNP_DISC_CACHE
protected static java.lang.String
PP_OD_XFER_CACHE
protected static java.lang.String
PP_REND_CLASSIFICATION
private static java.lang.String
PP_REND_DEF_TRANS_PROF
private static java.lang.String
PP_REND_RSS_PUB
protected static java.lang.String
PP_REND_SHOW_CAT
private static java.lang.String
PP_REND_TAG_SHARE
private static java.lang.String
PP_REND_TRANS_CACHE
private static java.lang.String
PP_REND_TRANS_REQ
private static java.lang.String
PP_REND_WORK_DIR
protected static java.lang.String
PP_RESTRICT_ACCESS
protected static java.lang.String
PP_TIVO_MACHINE
protected static boolean
PR_AUTO_START_DEFAULT
private java.lang.String
secondary_uid
private boolean
tagged
protected static java.lang.String
TP_IP_ADDRESS
private boolean
transcoding
private java.util.Map<java.lang.Object,java.lang.Object>
transient_properties
private int
type
private java.lang.String
uid
-
Fields inherited from interface com.biglybt.core.devices.Device
DT_CONTENT_DIRECTORY, DT_DISK_OPS, DT_INTERNET, DT_INTERNET_GATEWAY, DT_MEDIA_RENDERER, DT_UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeviceImpl(DeviceManagerImpl _manager, int _type, java.lang.String _uid, java.lang.String _classification, boolean _manual)
protected
DeviceImpl(DeviceManagerImpl _manager, int _type, java.lang.String _uid, java.lang.String _classification, boolean _manual, java.lang.String _name)
protected
DeviceImpl(DeviceManagerImpl _manager, java.util.Map map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, boolean value)
protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, TranscodeProfile value)
protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, TranscodeProfile[] values)
protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.io.File value)
protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.lang.String value)
protected void
addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.lang.String[] values)
void
addListener(DeviceListener listener)
void
addListener(TranscodeTargetListener listener)
void
alive()
TranscodeFileImpl
allocateFile(TranscodeProfile profile, boolean no_xcode, DiskManagerFileInfo file, boolean for_job)
protected java.lang.String
allocateUniqueFileName(java.lang.String str)
boolean
canRemove()
protected void
close()
protected void
dead()
protected void
deleteFile(TranscodeFileImpl file, boolean delete_contents, boolean remove)
protected void
destroy()
protected void
exportToBEncodedMap(java.util.Map map, boolean for_export)
protected void
fileDirty(TranscodeFileImpl file, int type, java.lang.Object data)
protected void
fireChanged()
void
generate(IndentWriter writer)
void
generateTT(IndentWriter writer)
boolean
getAlwaysCacheFiles()
long
getAutoShareToTagID()
TranscodeProfile
getBlankProfile()
java.lang.String
getClassification()
TranscodeProfile
getDefaultTranscodeProfile()
Device
getDevice()
protected java.lang.String
getDeviceClassification()
protected java.io.File
getDeviceFile()
protected java.io.File
getDevicesDir()
TranscodeProfile[]
getDirectTranscodeProfiles()
java.lang.String[][]
getDisplayProperties()
Array of resource strings and their associated valuesprotected void
getDisplayProperties(java.util.List<java.lang.String[]> dp)
java.lang.String
getError()
int
getFileCount()
TranscodeFileImpl[]
getFiles()
java.lang.String
getID()
java.lang.String
getImageID()
java.util.List<java.lang.String>
getImageIDs()
java.lang.String
getInfo()
long
getLastSeen()
protected DeviceManagerImpl
getManager()
protected java.lang.String
getMimeType(TranscodeFileImpl file)
java.lang.String
getName()
boolean
getPersistentBooleanProperty(java.lang.String prop, boolean def)
int
getPersistentIntProperty(java.lang.String prop, int def)
long
getPersistentLongProperty(java.lang.String prop, long def)
<T> java.util.Map<java.lang.String,T>
getPersistentMapProperty(java.lang.String prop, java.util.Map<java.lang.String,T> def)
java.lang.String[]
getPersistentStringListProperty(java.lang.String prop)
java.lang.String
getPersistentStringProperty(java.lang.String prop)
java.lang.String
getPersistentStringProperty(java.lang.String prop, java.lang.String def)
int
getRendererSpecies()
protected java.lang.String
getSecondaryID()
java.lang.String
getShortDescription()
java.lang.String
getStatus()
protected java.net.URL
getStreamURL(TranscodeFileImpl file, java.lang.String host)
java.lang.String
getString()
protected TranscodeFileImpl
getTranscodeFile(java.lang.String key)
TranscodeProfile[]
getTranscodeProfiles()
TranscodeProfile[]
getTranscodeProfiles(boolean walkup)
private TranscodeProfile[]
getTranscodeProfiles(java.lang.String classification)
int
getTranscodeRequirement()
java.lang.Object
getTransientProperty(java.lang.Object key)
java.lang.Object
getTransientProperty(java.lang.Object key1, java.lang.Object key2)
protected void
getTTDisplayProperties(java.util.List<java.lang.String[]> dp)
int
getType()
VuzeFile
getVuzeFile()
java.net.URL
getWikiURL()
java.io.File
getWorkingDirectory()
java.io.File
getWorkingDirectory(boolean persist)
protected static DeviceImpl
importFromBEncodedMapStatic(DeviceManagerImpl manager, java.util.Map map)
protected void
initialise()
boolean
isAlive()
boolean
isAudioCompatible(TranscodeFile file)
boolean
isAutoHidden()
boolean
isBusy()
boolean
isExportable()
boolean
isGenericUSB()
boolean
isHidden()
boolean
isLivenessDetectable()
boolean
isManual()
boolean
isNameAutomatic()
boolean
isNonSimple()
boolean
isRSSPublishEnabled()
boolean
isTagged()
boolean
isTranscoding()
protected void
loadDeviceFile()
protected void
log(java.lang.String str)
protected void
log(java.lang.String str, java.lang.Throwable e)
TranscodeFileImpl
lookupFile(TranscodeProfile profile, DiskManagerFileInfo file)
private static java.lang.String
modifyDeviceDisplayName(java.lang.String name)
void
remove()
void
removeListener(DeviceListener listener)
void
removeListener(TranscodeTargetListener listener)
void
removePersistentProperty(java.lang.String prop)
void
requestAttention()
protected void
resetWorkingDirectory()
protected void
revertFileName(TranscodeFileImpl tf)
protected void
saveDeviceFile()
void
setAlwaysCacheFiles(boolean always_cache)
void
setAutoHidden(boolean h)
void
setAutoShareToTagID(long id)
protected void
setBusy(boolean busy)
void
setCanRemove(boolean can)
void
setDefaultTranscodeProfile(TranscodeProfile profile)
protected void
setDirty()
protected void
setDirty(boolean save_changes)
protected void
setError(java.lang.Object key, java.lang.String error)
void
setExportable(boolean b)
void
setGenericUSB(boolean is)
void
setHidden(boolean h)
void
setImageID(java.lang.String id)
protected void
setInfo(java.lang.Object key, java.lang.String info)
void
setName(java.lang.String _name, boolean isAutomaticName)
void
setPersistentBooleanProperty(java.lang.String prop, boolean value)
void
setPersistentIntProperty(java.lang.String prop, int value)
void
setPersistentLongProperty(java.lang.String prop, long value)
<T> void
setPersistentMapProperty(java.lang.String prop, java.util.Map<java.lang.String,T> value)
void
setPersistentStringListProperty(java.lang.String prop, java.lang.String[] values)
void
setPersistentStringProperty(java.lang.String prop, java.lang.String value)
void
setRSSPublishEnabled(boolean enabled)
protected void
setSecondaryID(java.lang.String str)
void
setTagged(boolean t)
void
setTranscodeRequirement(int req)
protected void
setTranscoding(boolean _transcoding)
void
setTransientProperty(java.lang.Object key, java.lang.Object value)
void
setTransientProperty(java.lang.Object key1, java.lang.Object key2, java.lang.Object value)
void
setWorkingDirectory(java.io.File directory)
protected boolean
updateFrom(DeviceImpl other, boolean is_alive)
protected void
updateStatus(int tick_count)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.devices.Device
getAddress, getBrowseLocations, isBrowsable, setAddress
-
-
-
-
Field Detail
-
MY_PACKAGE
private static final java.lang.String MY_PACKAGE
- See Also:
- Constant Field Values
-
blank_profile
private static final TranscodeProfile blank_profile
-
device_renames
private static java.util.List<java.util.regex.Pattern> device_renames
-
PP_REND_WORK_DIR
private static final java.lang.String PP_REND_WORK_DIR
- See Also:
- Constant Field Values
-
PP_REND_DEF_TRANS_PROF
private static final java.lang.String PP_REND_DEF_TRANS_PROF
- See Also:
- Constant Field Values
-
PP_REND_TRANS_REQ
private static final java.lang.String PP_REND_TRANS_REQ
- See Also:
- Constant Field Values
-
PP_REND_TRANS_CACHE
private static final java.lang.String PP_REND_TRANS_CACHE
- See Also:
- Constant Field Values
-
PP_REND_RSS_PUB
private static final java.lang.String PP_REND_RSS_PUB
- See Also:
- Constant Field Values
-
PP_REND_TAG_SHARE
private static final java.lang.String PP_REND_TAG_SHARE
- See Also:
- Constant Field Values
-
PP_REND_SHOW_CAT
protected static final java.lang.String PP_REND_SHOW_CAT
- See Also:
- Constant Field Values
-
PP_REND_CLASSIFICATION
protected static final java.lang.String PP_REND_CLASSIFICATION
- See Also:
- Constant Field Values
-
PP_IP_ADDRESS
protected static final java.lang.String PP_IP_ADDRESS
- See Also:
- Constant Field Values
-
PP_DONT_AUTO_HIDE
protected static final java.lang.String PP_DONT_AUTO_HIDE
- See Also:
- Constant Field Values
-
TP_IP_ADDRESS
protected static final java.lang.String TP_IP_ADDRESS
- See Also:
- Constant Field Values
-
PP_FILTER_FILES
protected static final java.lang.String PP_FILTER_FILES
- See Also:
- Constant Field Values
-
PP_RESTRICT_ACCESS
protected static final java.lang.String PP_RESTRICT_ACCESS
- See Also:
- Constant Field Values
-
PP_COPY_OUTSTANDING
protected static final java.lang.String PP_COPY_OUTSTANDING
- See Also:
- Constant Field Values
-
PP_AUTO_START
protected static final java.lang.String PP_AUTO_START
- See Also:
- Constant Field Values
-
PP_COPY_TO_FOLDER
protected static final java.lang.String PP_COPY_TO_FOLDER
- See Also:
- Constant Field Values
-
PP_AUTO_COPY
protected static final java.lang.String PP_AUTO_COPY
- See Also:
- Constant Field Values
-
PP_EXPORTABLE
protected static final java.lang.String PP_EXPORTABLE
- See Also:
- Constant Field Values
-
PP_LIVENESS_DETECTABLE
protected static final java.lang.String PP_LIVENESS_DETECTABLE
- See Also:
- Constant Field Values
-
PP_TIVO_MACHINE
protected static final java.lang.String PP_TIVO_MACHINE
- See Also:
- Constant Field Values
-
PP_OD_ENABLED
protected static final java.lang.String PP_OD_ENABLED
- See Also:
- Constant Field Values
-
PP_OD_SHOWN_FTUX
protected static final java.lang.String PP_OD_SHOWN_FTUX
- See Also:
- Constant Field Values
-
PP_OD_MANUFACTURER
protected static final java.lang.String PP_OD_MANUFACTURER
- See Also:
- Constant Field Values
-
PP_OD_STATE_CACHE
protected static final java.lang.String PP_OD_STATE_CACHE
- See Also:
- Constant Field Values
-
PP_OD_XFER_CACHE
protected static final java.lang.String PP_OD_XFER_CACHE
- See Also:
- Constant Field Values
-
PP_OD_UPNP_DISC_CACHE
protected static final java.lang.String PP_OD_UPNP_DISC_CACHE
- See Also:
- Constant Field Values
-
PR_AUTO_START_DEFAULT
protected static final boolean PR_AUTO_START_DEFAULT
- See Also:
- Constant Field Values
-
PP_AUTO_COPY_DEFAULT
protected static final boolean PP_AUTO_COPY_DEFAULT
- See Also:
- Constant Field Values
-
GENERIC
private static final java.lang.String GENERIC
- See Also:
- Constant Field Values
-
KEY_FILE_ALLOC_ERROR
private static final java.lang.Object KEY_FILE_ALLOC_ERROR
-
manager
private DeviceManagerImpl manager
-
type
private int type
-
uid
private java.lang.String uid
-
secondary_uid
private java.lang.String secondary_uid
-
classification
private java.lang.String classification
-
name
private java.lang.String name
-
manual
private boolean manual
-
hidden
private boolean hidden
-
auto_hidden
private boolean auto_hidden
-
isGenericUSB
private boolean isGenericUSB
-
last_seen
private long last_seen
-
can_remove
private boolean can_remove
-
tagged
private boolean tagged
-
busy_count
private int busy_count
-
online
private boolean online
-
transcoding
private boolean transcoding
-
persistent_properties
private java.util.Map<java.lang.String,java.lang.Object> persistent_properties
-
transient_properties
private java.util.Map<java.lang.Object,java.lang.Object> transient_properties
-
device_files_last_mod
long device_files_last_mod
-
device_files_dirty
boolean device_files_dirty
-
device_files
java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>> device_files
-
device_files_ref
private java.lang.ref.WeakReference<java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>>> device_files_ref
-
listeners
private CopyOnWriteList<TranscodeTargetListener> listeners
-
errors
private java.util.Map<java.lang.Object,java.lang.String> errors
-
infos
private java.util.Map<java.lang.Object,java.lang.String> infos
-
device_listeners
private CopyOnWriteList<DeviceListener> device_listeners
-
image_id
private java.lang.String image_id
-
isNameAutomatic
private boolean isNameAutomatic
-
-
Constructor Detail
-
DeviceImpl
protected DeviceImpl(DeviceManagerImpl _manager, int _type, java.lang.String _uid, java.lang.String _classification, boolean _manual)
-
DeviceImpl
protected DeviceImpl(DeviceManagerImpl _manager, int _type, java.lang.String _uid, java.lang.String _classification, boolean _manual, java.lang.String _name)
-
DeviceImpl
protected DeviceImpl(DeviceManagerImpl _manager, java.util.Map map) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
importFromBEncodedMapStatic
protected static DeviceImpl importFromBEncodedMapStatic(DeviceManagerImpl manager, java.util.Map map) throws java.io.IOException
- Throws:
java.io.IOException
-
modifyDeviceDisplayName
private static java.lang.String modifyDeviceDisplayName(java.lang.String name)
-
exportToBEncodedMap
protected void exportToBEncodedMap(java.util.Map map, boolean for_export) throws java.io.IOException
- Throws:
java.io.IOException
-
updateFrom
protected boolean updateFrom(DeviceImpl other, boolean is_alive)
-
setExportable
public void setExportable(boolean b)
- Specified by:
setExportable
in interfaceDevice
-
isExportable
public boolean isExportable()
- Specified by:
isExportable
in interfaceDevice
-
getVuzeFile
public VuzeFile getVuzeFile() throws java.io.IOException
- Specified by:
getVuzeFile
in interfaceDevice
- Throws:
java.io.IOException
-
initialise
protected void initialise()
-
destroy
protected void destroy()
-
setSecondaryID
protected void setSecondaryID(java.lang.String str)
-
getSecondaryID
protected java.lang.String getSecondaryID()
-
getImageID
public java.lang.String getImageID()
- Specified by:
getImageID
in interfaceDevice
-
getImageIDs
public java.util.List<java.lang.String> getImageIDs()
- Specified by:
getImageIDs
in interfaceDevice
-
setImageID
public void setImageID(java.lang.String id)
- Specified by:
setImageID
in interfaceDevice
-
getDevice
public Device getDevice()
-
setName
public void setName(java.lang.String _name, boolean isAutomaticName)
-
isNameAutomatic
public boolean isNameAutomatic()
- Specified by:
isNameAutomatic
in interfaceDevice
-
getClassification
public java.lang.String getClassification()
- Specified by:
getClassification
in interfaceDevice
-
getShortDescription
public java.lang.String getShortDescription()
- Specified by:
getShortDescription
in interfaceDevice
-
getRendererSpecies
public int getRendererSpecies()
-
getDeviceClassification
protected java.lang.String getDeviceClassification()
-
isNonSimple
public boolean isNonSimple()
-
isAutoHidden
public boolean isAutoHidden()
-
setAutoHidden
public void setAutoHidden(boolean h)
-
isGenericUSB
public boolean isGenericUSB()
- Specified by:
isGenericUSB
in interfaceDevice
-
setGenericUSB
public void setGenericUSB(boolean is)
- Specified by:
setGenericUSB
in interfaceDevice
-
getLastSeen
public long getLastSeen()
-
isLivenessDetectable
public boolean isLivenessDetectable()
- Specified by:
isLivenessDetectable
in interfaceDevice
-
dead
protected void dead()
-
getWikiURL
public java.net.URL getWikiURL()
- Specified by:
getWikiURL
in interfaceDevice
-
setDirty
protected void setDirty()
-
setDirty
protected void setDirty(boolean save_changes)
-
updateStatus
protected void updateStatus(int tick_count)
-
requestAttention
public void requestAttention()
- Specified by:
requestAttention
in interfaceDevice
-
getFileCount
public int getFileCount()
-
getFiles
public TranscodeFileImpl[] getFiles()
-
allocateFile
public TranscodeFileImpl allocateFile(TranscodeProfile profile, boolean no_xcode, DiskManagerFileInfo file, boolean for_job) throws TranscodeException
- Throws:
TranscodeException
-
allocateUniqueFileName
protected java.lang.String allocateUniqueFileName(java.lang.String str)
-
revertFileName
protected void revertFileName(TranscodeFileImpl tf) throws TranscodeException
- Throws:
TranscodeException
-
lookupFile
public TranscodeFileImpl lookupFile(TranscodeProfile profile, DiskManagerFileInfo file)
-
getTranscodeFile
protected TranscodeFileImpl getTranscodeFile(java.lang.String key)
-
getWorkingDirectory
public java.io.File getWorkingDirectory()
-
getWorkingDirectory
public java.io.File getWorkingDirectory(boolean persist)
-
setWorkingDirectory
public void setWorkingDirectory(java.io.File directory)
-
resetWorkingDirectory
protected void resetWorkingDirectory()
-
getTranscodeProfiles
public TranscodeProfile[] getTranscodeProfiles()
-
getDirectTranscodeProfiles
public TranscodeProfile[] getDirectTranscodeProfiles()
- Specified by:
getDirectTranscodeProfiles
in interfaceDevice
-
getTranscodeProfiles
public TranscodeProfile[] getTranscodeProfiles(boolean walkup)
-
getTranscodeProfiles
private TranscodeProfile[] getTranscodeProfiles(java.lang.String classification)
-
getDefaultTranscodeProfile
public TranscodeProfile getDefaultTranscodeProfile()
-
setDefaultTranscodeProfile
public void setDefaultTranscodeProfile(TranscodeProfile profile)
-
getBlankProfile
public TranscodeProfile getBlankProfile()
-
setTranscoding
protected void setTranscoding(boolean _transcoding)
-
isTranscoding
public boolean isTranscoding()
-
getTranscodeRequirement
public int getTranscodeRequirement()
-
setTranscodeRequirement
public void setTranscodeRequirement(int req)
-
isAudioCompatible
public boolean isAudioCompatible(TranscodeFile file)
-
getAlwaysCacheFiles
public boolean getAlwaysCacheFiles()
-
setAlwaysCacheFiles
public void setAlwaysCacheFiles(boolean always_cache)
-
isRSSPublishEnabled
public boolean isRSSPublishEnabled()
-
setRSSPublishEnabled
public void setRSSPublishEnabled(boolean enabled)
-
getAutoShareToTagID
public long getAutoShareToTagID()
-
setAutoShareToTagID
public void setAutoShareToTagID(long id)
-
getDisplayProperties
public java.lang.String[][] getDisplayProperties()
Description copied from interface:Device
Array of resource strings and their associated values- Specified by:
getDisplayProperties
in interfaceDevice
- Returns:
-
getDisplayProperties
protected void getDisplayProperties(java.util.List<java.lang.String[]> dp)
-
getTTDisplayProperties
protected void getTTDisplayProperties(java.util.List<java.lang.String[]> dp)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.lang.String value)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.io.File value)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, java.lang.String[] values)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, boolean value)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, TranscodeProfile value)
-
addDP
protected void addDP(java.util.List<java.lang.String[]> dp, java.lang.String name, TranscodeProfile[] values)
-
setCanRemove
public void setCanRemove(boolean can)
- Specified by:
setCanRemove
in interfaceDevice
-
setBusy
protected void setBusy(boolean busy)
-
getPersistentStringProperty
public java.lang.String getPersistentStringProperty(java.lang.String prop)
-
getPersistentStringProperty
public java.lang.String getPersistentStringProperty(java.lang.String prop, java.lang.String def)
-
setPersistentStringProperty
public void setPersistentStringProperty(java.lang.String prop, java.lang.String value)
-
getPersistentMapProperty
public <T> java.util.Map<java.lang.String,T> getPersistentMapProperty(java.lang.String prop, java.util.Map<java.lang.String,T> def)
-
setPersistentMapProperty
public <T> void setPersistentMapProperty(java.lang.String prop, java.util.Map<java.lang.String,T> value)
-
removePersistentProperty
public void removePersistentProperty(java.lang.String prop)
-
setError
protected void setError(java.lang.Object key, java.lang.String error)
-
setInfo
protected void setInfo(java.lang.Object key, java.lang.String info)
-
getPersistentBooleanProperty
public boolean getPersistentBooleanProperty(java.lang.String prop, boolean def)
-
setPersistentBooleanProperty
public void setPersistentBooleanProperty(java.lang.String prop, boolean value)
-
getPersistentLongProperty
public long getPersistentLongProperty(java.lang.String prop, long def)
-
setPersistentLongProperty
public void setPersistentLongProperty(java.lang.String prop, long value)
-
getPersistentIntProperty
public int getPersistentIntProperty(java.lang.String prop, int def)
-
setPersistentIntProperty
public void setPersistentIntProperty(java.lang.String prop, int value)
-
getPersistentStringListProperty
public java.lang.String[] getPersistentStringListProperty(java.lang.String prop)
-
setPersistentStringListProperty
public void setPersistentStringListProperty(java.lang.String prop, java.lang.String[] values)
-
setTransientProperty
public void setTransientProperty(java.lang.Object key, java.lang.Object value)
- Specified by:
setTransientProperty
in interfaceDevice
-
getTransientProperty
public java.lang.Object getTransientProperty(java.lang.Object key)
- Specified by:
getTransientProperty
in interfaceDevice
-
setTransientProperty
public void setTransientProperty(java.lang.Object key1, java.lang.Object key2, java.lang.Object value)
-
getTransientProperty
public java.lang.Object getTransientProperty(java.lang.Object key1, java.lang.Object key2)
-
close
protected void close()
-
loadDeviceFile
protected void loadDeviceFile() throws java.io.IOException
- Throws:
java.io.IOException
-
getStreamURL
protected java.net.URL getStreamURL(TranscodeFileImpl file, java.lang.String host)
-
getMimeType
protected java.lang.String getMimeType(TranscodeFileImpl file)
-
deleteFile
protected void deleteFile(TranscodeFileImpl file, boolean delete_contents, boolean remove) throws TranscodeException
- Throws:
TranscodeException
-
fileDirty
protected void fileDirty(TranscodeFileImpl file, int type, java.lang.Object data)
-
saveDeviceFile
protected void saveDeviceFile()
-
getDeviceFile
protected java.io.File getDeviceFile() throws java.io.IOException
- Throws:
java.io.IOException
-
getDevicesDir
protected java.io.File getDevicesDir() throws java.io.IOException
- Throws:
java.io.IOException
-
getManager
protected DeviceManagerImpl getManager()
-
addListener
public void addListener(TranscodeTargetListener listener)
-
removeListener
public void removeListener(TranscodeTargetListener listener)
-
fireChanged
protected void fireChanged()
-
addListener
public void addListener(DeviceListener listener)
- Specified by:
addListener
in interfaceDevice
-
removeListener
public void removeListener(DeviceListener listener)
- Specified by:
removeListener
in interfaceDevice
-
log
protected void log(java.lang.String str)
-
log
protected void log(java.lang.String str, java.lang.Throwable e)
-
generate
public void generate(IndentWriter writer)
-
generateTT
public void generateTT(IndentWriter writer)
-
-