org.jcodec.movtool.streaming.tracks
Class CachingTrack

java.lang.Object
  extended by org.jcodec.movtool.streaming.tracks.CachingTrack
All Implemented Interfaces:
VirtualTrack

public class CachingTrack
extends Object
implements VirtualTrack

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License A proxy track that maintains in-memory cache of recently read packets

Author:
The JCodec project

Nested Class Summary
 class CachingTrack.CachingPacket
           
 
Nested classes/interfaces inherited from interface org.jcodec.movtool.streaming.VirtualTrack
VirtualTrack.VirtualEdit
 
Constructor Summary
CachingTrack(VirtualTrack src, int policy, ScheduledExecutorService policyExecutor)
           
 
Method Summary
 void close()
           
 VirtualTrack.VirtualEdit[] getEdits()
           
 int getPreferredTimescale()
           
 SampleEntry getSampleEntry()
           
 VirtualPacket nextPacket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingTrack

public CachingTrack(VirtualTrack src,
                    int policy,
                    ScheduledExecutorService policyExecutor)
Method Detail

getSampleEntry

public SampleEntry getSampleEntry()
Specified by:
getSampleEntry in interface VirtualTrack

nextPacket

public VirtualPacket nextPacket()
                         throws IOException
Specified by:
nextPacket in interface VirtualTrack
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface VirtualTrack
Throws:
IOException

getEdits

public VirtualTrack.VirtualEdit[] getEdits()
Specified by:
getEdits in interface VirtualTrack

getPreferredTimescale

public int getPreferredTimescale()
Specified by:
getPreferredTimescale in interface VirtualTrack


Copyright © 2013. All Rights Reserved.