anl.aida.client.io
Class CacheFileReader

java.lang.Object
  extended by anl.aida.client.io.CacheFileReader

public class CacheFileReader
extends java.lang.Object

Date: Feb 5, 2009 4:04:01 PM


Nested Class Summary
private  class CacheFileReader.ItemsProcessor
           
private  class CacheFileReader.KeywordProcessor
           
private  class CacheFileReader.RangeProcessor
           
private  class CacheFileReader.Switcher
           
private static interface CacheFileReader.XMLEventProcessor
           
 
Field Summary
private  int cacheId
           
private  CacheFileReader.XMLEventProcessor defaultProc
           
private  java.util.List<CacheElement> elements
           
private  java.io.File file
           
private  java.io.File index
           
private  Keywords keywords
           
private  CacheFileReader.XMLEventProcessor processor
           
private  int rangeInterval
           
private  int rangeLength
           
private  long start
           
 
Constructor Summary
CacheFileReader()
           
 
Method Summary
private  anl.aida.core.STCHeader createHeader(java.io.File file)
           
 Cache read(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheId

private int cacheId

rangeLength

private int rangeLength

rangeInterval

private int rangeInterval

start

private long start

elements

private java.util.List<CacheElement> elements

index

private java.io.File index

file

private java.io.File file

processor

private CacheFileReader.XMLEventProcessor processor

defaultProc

private CacheFileReader.XMLEventProcessor defaultProc

keywords

private Keywords keywords
Constructor Detail

CacheFileReader

public CacheFileReader()
Method Detail

read

public Cache read(java.io.File file)
           throws java.io.IOException,
                  javax.xml.stream.XMLStreamException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

createHeader

private anl.aida.core.STCHeader createHeader(java.io.File file)
                                      throws java.io.IOException
Throws:
java.io.IOException