public final class AnalyzerUtils extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUDIO |
static String |
AUDIOC |
static String |
IMAGE |
static String |
IMAGEC |
static String |
MEDIA |
static String |
MEDIAC |
static String |
VIDEO |
static String |
VIDEOC |
| Constructor and Description |
|---|
AnalyzerUtils(Logger... loggers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
audio(String l,
Node source,
Node dest)
Looks for audio channel(s).
|
boolean |
dimensions(String l,
Node source,
Node dest)
Looks for width and height when it finds a match for Video, and looks for bitrate after that.
|
boolean |
duration(String l,
Node source,
Node dest)
Matches duration, records that and tries to match bitrate and start on that same line.
|
void |
filelastModified(Node node) |
protected void |
fixMimeType(String type,
Node node)
This fixes the first part (f.e.
|
long |
getLength(String l) |
long |
getStart(String s) |
boolean |
getUpdateDestination() |
boolean |
getUpdateSource() |
boolean |
image(String l,
Node source,
Node dest) |
boolean |
image2(String l,
Node source,
Node dest)
Matches on Input and looks for the 'image2' format which indicates that the input is an image.
|
static Codec |
libtoCodec(String str) |
boolean |
output(String l,
Node source,
Node dest) |
boolean |
png(String l,
Node source,
Node dest)
Matches on Input and looks for the 'image2' format which indicates that the input is an image.
|
void |
setUpdateDestination(boolean b) |
void |
setUpdateSource(boolean b) |
void |
toAudio(Node source,
Node dest) |
void |
toImage(Node source,
Node dest) |
void |
toVideo(Node source,
Node dest) |
boolean |
unsupported(String l,
Node source,
Node dest) |
boolean |
video(String l,
Node source,
Node dest) |
public static final String VIDEO
public static final String AUDIO
public static final String IMAGE
public static final String MEDIA
public static final String VIDEOC
public static final String AUDIOC
public static final String IMAGEC
public static final String MEDIAC
AnalyzerUtils(Logger... loggers)
public void setUpdateSource(boolean b)
public boolean getUpdateSource()
public void setUpdateDestination(boolean b)
public boolean getUpdateDestination()
protected void fixMimeType(String type, Node node)
public long getLength(String l)
public long getStart(String s)
public boolean duration(String l, Node source, Node dest)
public boolean image2(String l, Node source, Node dest)
public boolean png(String l, Node source, Node dest)
public boolean dimensions(String l, Node source, Node dest)
public void filelastModified(Node node)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}