Fields Summary |
---|
private final BigInteger | durationDuration of the media content in 100ns steps. |
private final Date | fileCreationTimeThe time the file was created. |
private final BigInteger | fileSizeSize of the file or stream. |
private final long | flagsUsually contains value of 2. |
private final long | maxPackageSizeMaximum size of stream packages.
Warning: must be same size as {@link #minPackageSize}. Its not
known how to handle deviating values. |
private final long | minPackageSizeMinimun size of stream packages.
Warning: must be same size as {@link #maxPackageSize}. Its not
known how to handle deviating values. |
private final BigInteger | packageCountNumber of stream packages within the File. |
private final BigInteger | timeEndPosNo Idea of the Meaning, but stored anyway.
Source documentation says it is: "Timestamp of end position" |
private final BigInteger | timeStartPosLike {@link #timeEndPos}no Idea. |
private final long | uncompressedFrameSizeSize of an uncompressed video frame. |
Methods Summary |
---|
public java.math.BigInteger | getDuration()
return this.duration;
|
public int | getDurationInSeconds()This method converts {@link #getDuration()}from 100ns steps to normal
seconds.
return this.duration.divide(new BigInteger("10000000")).intValue();
|
public java.util.Date | getFileCreationTime()
return new Date(this.fileCreationTime.getTime());
|
public java.math.BigInteger | getFileSize()
return this.fileSize;
|
public long | getFlags()
return this.flags;
|
public long | getMaxPackageSize()
return this.maxPackageSize;
|
public long | getMinPackageSize()
return this.minPackageSize;
|
public java.math.BigInteger | getPackageCount()
return this.packageCount;
|
public float | getPreciseDuration()This method converts {@link #getDuration()} from 100ns steps to normal
seconds with a fractional part taking milliseconds.
return (float) (getDuration().doubleValue() / 10000000d);
|
public java.math.BigInteger | getTimeEndPos()
return this.timeEndPos;
|
public java.math.BigInteger | getTimeStartPos()
return this.timeStartPos;
|
public long | getUncompressedFrameSize()
return this.uncompressedFrameSize;
|
public java.lang.String | prettyPrint(java.lang.String prefix)(overridden)
final StringBuilder result = new StringBuilder(super.prettyPrint(prefix));
result.append(prefix).append(" |-> Filesize = ").append(
getFileSize().toString()).append(" Bytes").append(
Utils.LINE_SEPARATOR);
result.append(prefix).append(" |-> Media duration= ").append(
getDuration().divide(new BigInteger("10000")).toString())
.append(" ms").append(Utils.LINE_SEPARATOR);
result.append(prefix).append(" |-> Created at = ").append(
getFileCreationTime()).append(Utils.LINE_SEPARATOR);
return result.toString();
|