maltcms.datastructures.caches
Class ScanLineCacheFactory

java.lang.Object
  extended by maltcms.datastructures.caches.ScanLineCacheFactory

public class ScanLineCacheFactory
extends Object

This Factory creates all IScanLine caches and hold an reference to support multiple usage.

Author:
Mathias Wilhelm(mwilhelm A T TechFak.Uni-Bielefeld.DE)

Constructor Summary
ScanLineCacheFactory()
           
 
Method Summary
static IScanLine getCachedListScanLineCache(cross.datastructures.fragments.IFileFragment ff)
           
static IScanLine getDefaultScanLineCache(cross.datastructures.fragments.IFileFragment ff)
           
static IScanLine getOldScanLineCache(cross.datastructures.fragments.IFileFragment ff)
           
static IScanLine getScanLineCache(cross.datastructures.fragments.IFileFragment ff)
          This method will automatically create a new IScanLine for the given IFileFragment if no one is cached.
static IScanLine getSparseScanLineCache(cross.datastructures.fragments.IFileFragment ff)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanLineCacheFactory

public ScanLineCacheFactory()
Method Detail

getScanLineCache

public static IScanLine getScanLineCache(cross.datastructures.fragments.IFileFragment ff)
This method will automatically create a new IScanLine for the given IFileFragment if no one is cached. Otherwise it will return the known IScanLine.

Parameters:
ff - file fragment
Returns:
scanline cache for this file fragment

getSparseScanLineCache

public static IScanLine getSparseScanLineCache(cross.datastructures.fragments.IFileFragment ff)

getDefaultScanLineCache

public static IScanLine getDefaultScanLineCache(cross.datastructures.fragments.IFileFragment ff)

getOldScanLineCache

public static IScanLine getOldScanLineCache(cross.datastructures.fragments.IFileFragment ff)

getCachedListScanLineCache

public static IScanLine getCachedListScanLineCache(cross.datastructures.fragments.IFileFragment ff)


Copyright © 2007-2012. All Rights Reserved.