com.smaxe.uv.stream
Class StreamInfo

java.lang.Object
  extended by com.smaxe.uv.stream.StreamInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class StreamInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

StreamInfo - stream info (Snapshot), it contains duration/frames/size info.

Author:
Andrei Sochirca
See Also:
Serialized Form

Field Summary
 long duration
          media stream duration (in milliseconds).
 long frames
          media stream frames.
 long size
          media stream size (in bytes).
 long timestamp
          timestamp.
 
Constructor Summary
StreamInfo()
          Constructor.
StreamInfo(long timestamp, long duration, long frames, long size)
          Constructor.
StreamInfo(long timestamp, StreamInfo info)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public long timestamp
timestamp.


duration

public long duration
media stream duration (in milliseconds).


frames

public long frames
media stream frames.


size

public long size
media stream size (in bytes).

Constructor Detail

StreamInfo

public StreamInfo()
Constructor.


StreamInfo

public StreamInfo(long timestamp,
                  long duration,
                  long frames,
                  long size)
Constructor.

Parameters:
timestamp -
duration -
frames -
size -

StreamInfo

public StreamInfo(long timestamp,
                  StreamInfo info)
Constructor.

Parameters:
timestamp -
info -
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object