
public class Configurable extends RefCounted
You can use Configuration#configure(java.util.Properties, Configurable)
to easily configure these objects from Java properties or
from a FFmpeg preset file.
| Modifier and Type | Method and Description |
|---|---|
Configurable |
copyReference()
Create a new Configurable object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
int |
getNumProperties()
Returns the total number of settable properties on this object
|
boolean |
getPropertyAsBoolean(String name)
Gets the value of this property, and returns as a boolean
|
double |
getPropertyAsDouble(String name)
Gets the value of this property, and returns as a double;
|
int |
getPropertyAsInt(String name)
Gets the value of this property, and returns as an int;
|
long |
getPropertyAsLong(String name)
Gets the value of this property, and returns as an long;
|
Rational |
getPropertyAsRational(String name)
Gets the value of this property, and returns as an Rational;
|
String |
getPropertyAsString(String name)
Gets a property on this Object.
|
Property |
getPropertyMetaData(int propertyNo)
Returns the name of the numbered property.
|
Property |
getPropertyMetaData(String name)
Returns the name of the named property.
|
int |
hashCode()
Get a hashable value for this object.
|
void |
setProperty(KeyValueBag valuesToSet,
KeyValueBag valuesNotFound)
Sets all properties in valuesToSet on this Configurable object.
|
void |
setProperty(String name,
boolean value)
Looks up the property 'name' and sets the
value of the property to 'value'. |
void |
setProperty(String name,
double value)
Looks up the property 'name' and sets the
value of the property to 'value'. |
void |
setProperty(String name,
long value)
Looks up the property 'name' and sets the
value of the property to 'value'. |
void |
setProperty(String name,
Rational value)
Looks up the property 'name' and sets the
value of the property to 'value'. |
void |
setProperty(String name,
String value)
Sets a property on this Object.
All AVOptions supported by the underlying AVClass are supported. |
delete, getCurrentRefCountpublic Configurable copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public int getNumProperties()
public Property getPropertyMetaData(int propertyNo)
propertyNo - The property number in the options list.public Property getPropertyMetaData(String name)
name - The property name.PropertyNotFoundException - if this property is not found.public void setProperty(String name, String value)
name - The property name. For example "b" for bit-rate.value - The value of the property.PropertyNotFoundException - if this property is not found.public void setProperty(String name, double value)
name - name of optionvalue - Value of optionPropertyNotFoundException - if this property is not found.public void setProperty(String name, long value)
name - name of optionvalue - Value of optionPropertyNotFoundException - if this property is not found.public void setProperty(String name, boolean value)
name - name of optionvalue - Value of optionPropertyNotFoundException - if this property is not found.public void setProperty(String name, Rational value)
name - name of optionvalue - Value of optionPropertyNotFoundException - if this property is not found.public String getPropertyAsString(String name)
name - property namePropertyNotFoundException - if this property is not found.public double getPropertyAsDouble(String name)
name - name of optionPropertyNotFoundException - if this property is not found.public long getPropertyAsLong(String name)
name - name of optionPropertyNotFoundException - if this property is not found.public int getPropertyAsInt(String name)
name - name of optionPropertyNotFoundException - if this property is not found.public Rational getPropertyAsRational(String name)
name - name of optionPropertyNotFoundException - if this property is not found.public boolean getPropertyAsBoolean(String name)
name - name of optionPropertyNotFoundException - if this property is not found.public void setProperty(KeyValueBag valuesToSet, KeyValueBag valuesNotFound)
valuesToSet - The set of key-value pairs to try to setvaluesNotFound - If non null will contain all key-values pairs in valuesToSetCopyright © 2018 Humble Software. All rights reserved.