|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.util.movie.FilePropertiesASF
public class FilePropertiesASF
Constructor Summary | |
---|---|
FilePropertiesASF()
|
Method Summary | |
---|---|
protected int |
changeEndianness(int num)
Reverses the byte order |
boolean |
containsVideoStream()
Returns true if the last call of
#process(RandomAccessFile) has found a video stream. |
protected java.lang.String |
findName(java.io.InputStream stream,
java.lang.String id)
Searches in the inputStream stream the name following the string id (separated by a \t). |
protected java.lang.String |
fromByteToAscii(int j,
int numberOfBytes)
Returns the ASCII value of id |
int |
getAudioBitRate()
Returns the audio bit rate. |
int |
getAudioChannels()
Returns the audio channels. |
java.lang.String |
getAudioCodec()
Returns the audio codec. |
int |
getAudioRate()
Returns the audio rate. |
protected int[] |
getBits(int value,
int numberOfBytes)
Returns an array containing the bits from the value. |
protected java.lang.String |
getContainer()
Returns the container. |
protected int |
getDecimalValue(int[] bits,
int start,
int stop,
boolean printBits)
Returns the decimal value of a specified number of bytes from a specific part of a byte. |
int |
getDuration()
Returns the duration. |
java.lang.String |
getFilename()
|
java.lang.String |
getLanguage()
|
protected java.lang.String |
getMediaType()
Returns the Media Type. |
protected java.util.List<java.lang.String> |
getMetaData()
Returns the meta data ArrayList. |
java.lang.String |
getName()
|
java.lang.String |
getSubtitles()
Returns the subtitles. |
protected int |
getUnsignedInt16(byte byte1,
byte byte2)
Returns a 16-bit integer. |
protected int |
getUnsignedInt16(int byte1,
int byte2)
Returns a 16-bit integer. |
protected int |
getUnsignedInt32(byte byte1,
byte byte2)
Returns an unsigned 32-bit integer. |
protected int |
getUnsignedInt32(int byte1,
int byte2)
Returns an unsigned 32-bit integer. |
int |
getVideoBitRate()
Returns the video bit rate. |
java.lang.String |
getVideoCodec()
Returns the video codec. |
double |
getVideoRate()
Returns the video rate. |
java.lang.String |
getVideoResolution()
Returns the resolution. |
void |
process(java.io.RandomAccessFile file,
java.lang.String filename)
This method will read the file and interprets it as an ASF-media-file. |
protected int |
readUnsignedByte(byte[] b,
int offset)
Reads an unsigned 8-bit integer. |
protected int |
readUnsignedByte(java.io.RandomAccessFile dataStream)
Reads an unsigned byte and returns its int representation. |
protected int[] |
readUnsignedBytes(java.io.RandomAccessFile dataStream,
int n)
Reads n unsigned bytes and returns it in an int[n]. |
protected int |
readUnsignedInt16(byte[] b,
int offset)
Reads an unsigned 16-bit integer. |
protected int |
readUnsignedInt16(java.io.RandomAccessFile dataStream)
Reads an unsigned 16-bit integer. |
protected int |
readUnsignedInt32(byte[] b,
int offset)
Reads an unsigned 32-bit integer. |
protected int |
readUnsignedInt32(java.io.RandomAccessFile dataStream)
Reads an unsigned 32-bit integer. |
protected void |
setAudioBitRate(int audioBitRate)
Sets the audio bit rate. |
protected void |
setAudioChannels(int audioChannels)
Sets the audio channels. |
protected void |
setAudioCodec(java.lang.String audioCodec)
Sets the audio Codec (auda handler). |
protected void |
setAudioRate(int audioRate)
Sets the audio rate. |
protected void |
setContainer(java.lang.String container)
Sets the container. |
protected void |
setDuration(int duration)
Sets the duration. |
void |
setFilename(java.lang.String filename)
|
void |
setLanguage(java.lang.String language)
|
protected void |
setMediaType(java.lang.String mediaType)
Sets the Media Type. |
protected void |
setMetaData(java.util.List<java.lang.String> metaData)
Sets the meta data ArrayList. |
void |
setName(java.lang.String name)
|
protected void |
setSubtitles(java.lang.String subtitles)
Sets the subtitles. |
protected void |
setVideoBitRate(int videoBitRate)
Sets the video bit rate. |
protected void |
setVideoCodec(java.lang.String videoCodec)
Sets the video codec (video handler). |
protected void |
setVideoRate(double videoRate)
Sets the video rate. |
protected void |
setVideoResolution(java.lang.String videoResolution)
Sets the resolution. |
protected void |
skipBytes(java.io.RandomAccessFile dataStream,
int n)
Discards n bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilePropertiesASF()
Method Detail |
---|
public boolean containsVideoStream()
true
if the last call of
#process(RandomAccessFile)
has found a video stream.
public void process(java.io.RandomAccessFile file, java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getSubtitles()
public java.lang.String getVideoResolution()
public java.lang.String getVideoCodec()
public double getVideoRate()
public int getVideoBitRate()
public int getDuration()
public java.lang.String getAudioCodec()
public int getAudioRate()
public int getAudioBitRate()
public int getAudioChannels()
protected void setSubtitles(java.lang.String subtitles)
protected void setVideoResolution(java.lang.String videoResolution)
protected void setVideoCodec(java.lang.String videoCodec)
protected void setVideoRate(double videoRate)
protected void setVideoBitRate(int videoBitRate)
protected void setDuration(int duration)
protected void setAudioCodec(java.lang.String audioCodec)
protected void setAudioRate(int audioRate)
protected void setAudioBitRate(int audioBitRate)
protected void setAudioChannels(int audioChannels)
protected void setContainer(java.lang.String container)
protected java.lang.String getContainer()
protected void setMediaType(java.lang.String mediaType)
protected java.lang.String getMediaType()
protected void setMetaData(java.util.List<java.lang.String> metaData)
protected java.util.List<java.lang.String> getMetaData()
protected int readUnsignedByte(byte[] b, int offset) throws java.lang.Exception
java.lang.Exception
protected int readUnsignedInt16(byte[] b, int offset) throws java.lang.Exception
java.lang.Exception
protected int readUnsignedInt32(byte[] b, int offset) throws java.lang.Exception
java.lang.Exception
protected int getUnsignedInt16(int byte1, int byte2) throws java.lang.Exception
java.lang.Exception
protected int getUnsignedInt16(byte byte1, byte byte2) throws java.lang.Exception
java.lang.Exception
protected int getUnsignedInt32(byte byte1, byte byte2) throws java.lang.Exception
java.lang.Exception
protected int getUnsignedInt32(int byte1, int byte2) throws java.lang.Exception
java.lang.Exception
protected int readUnsignedByte(java.io.RandomAccessFile dataStream) throws java.lang.Exception
java.lang.Exception
protected int[] readUnsignedBytes(java.io.RandomAccessFile dataStream, int n) throws java.lang.Exception
java.lang.Exception
protected int readUnsignedInt16(java.io.RandomAccessFile dataStream) throws java.lang.Exception
java.lang.Exception
protected int readUnsignedInt32(java.io.RandomAccessFile dataStream) throws java.lang.Exception
java.lang.Exception
protected void skipBytes(java.io.RandomAccessFile dataStream, int n) throws java.lang.Exception
java.lang.Exception
protected int changeEndianness(int num)
protected java.lang.String fromByteToAscii(int j, int numberOfBytes) throws java.lang.Exception
java.lang.Exception
protected int getDecimalValue(int[] bits, int start, int stop, boolean printBits)
protected int[] getBits(int value, int numberOfBytes)
protected java.lang.String findName(java.io.InputStream stream, java.lang.String id) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |