|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.asf.data.Chunk org.jaudiotagger.audio.asf.data.FileHeader
public class FileHeader
This class stores the information about the file, which is contained within a
special chunk of ASF files.
Field Summary | |
---|---|
private java.math.BigInteger |
duration
Duration of the media content in 100ns steps. |
private java.util.Date |
fileCreationTime
The time the file was created. |
private java.math.BigInteger |
fileSize
Size of the file or stream. |
private long |
flags
Usually contains value of 2. |
private long |
maxPackageSize
Maximum size of stream packages. |
private long |
minPackageSize
Minimun size of stream packages. |
private java.math.BigInteger |
packageCount
Number of stream packages within the File. |
private java.math.BigInteger |
timeEndPos
No Idea of the Meaning, but stored anyway. |
private java.math.BigInteger |
timeStartPos
Like timeEndPos no Idea. |
private long |
uncompressedFrameSize
Size of an uncompressed video frame. |
Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
chunkLength, guid, position |
Constructor Summary | |
---|---|
FileHeader(java.math.BigInteger chunckLen,
java.math.BigInteger size,
java.math.BigInteger fileTime,
java.math.BigInteger pkgCount,
java.math.BigInteger dur,
java.math.BigInteger timestampStart,
java.math.BigInteger timestampEnd,
long headerFlags,
long minPkgSize,
long maxPkgSize,
long uncmpVideoFrameSize)
Creates an instance. |
Method Summary | |
---|---|
java.math.BigInteger |
getDuration()
|
int |
getDurationInSeconds()
This method converts getDuration() from 100ns steps to normal
seconds. |
java.util.Date |
getFileCreationTime()
|
java.math.BigInteger |
getFileSize()
|
long |
getFlags()
|
long |
getMaxPackageSize()
|
long |
getMinPackageSize()
|
java.math.BigInteger |
getPackageCount()
|
float |
getPreciseDuration()
This method converts getDuration() from 100ns steps to normal
seconds with a fractional part taking milliseconds. |
java.math.BigInteger |
getTimeEndPos()
|
java.math.BigInteger |
getTimeStartPos()
|
long |
getUncompressedFrameSize()
|
java.lang.String |
prettyPrint(java.lang.String prefix)
(overridden) |
Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.math.BigInteger duration
private final java.util.Date fileCreationTime
private final java.math.BigInteger fileSize
private final long flags
private final long maxPackageSize
minPackageSize
. Its not
known how to handle deviating values.
private final long minPackageSize
maxPackageSize
. Its not
known how to handle deviating values.
private final java.math.BigInteger packageCount
private final java.math.BigInteger timeEndPos
private final java.math.BigInteger timeStartPos
timeEndPos
no Idea.
private final long uncompressedFrameSize
Constructor Detail |
---|
public FileHeader(java.math.BigInteger chunckLen, java.math.BigInteger size, java.math.BigInteger fileTime, java.math.BigInteger pkgCount, java.math.BigInteger dur, java.math.BigInteger timestampStart, java.math.BigInteger timestampEnd, long headerFlags, long minPkgSize, long maxPkgSize, long uncmpVideoFrameSize)
chunckLen
- Length of the file header (chunk)size
- Size of file or streamfileTime
- Time file or stream was created. Time is calculated since 1st
january of 1601 in 100ns steps.pkgCount
- Number of stream packages.dur
- Duration of media clip in 100ns stepstimestampStart
- Timestamp of start timeStartPos
timestampEnd
- Timestamp of end timeEndPos
headerFlags
- some stream related flags.minPkgSize
- minimum size of packagesmaxPkgSize
- maximum size of packagesuncmpVideoFrameSize
- Size of an uncompressed Video Frame.Method Detail |
---|
public java.math.BigInteger getDuration()
public int getDurationInSeconds()
getDuration()
from 100ns steps to normal
seconds.
public java.util.Date getFileCreationTime()
public java.math.BigInteger getFileSize()
public long getFlags()
public long getMaxPackageSize()
public long getMinPackageSize()
public java.math.BigInteger getPackageCount()
public float getPreciseDuration()
getDuration()
from 100ns steps to normal
seconds with a fractional part taking milliseconds.
public java.math.BigInteger getTimeEndPos()
public java.math.BigInteger getTimeStartPos()
public long getUncompressedFrameSize()
public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.
Chunk.prettyPrint(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |