public class FileInfoCache extends Object implements Comparator<SourceFile>
Constructor and Description |
---|
FileInfoCache() |
Modifier and Type | Method and Description |
---|---|
void |
bind(Session s) |
int |
compare(SourceFile o1,
SourceFile o2)
Comparator interface for sorting SourceFiles
|
boolean |
filesMatch(SourceFile a,
SourceFile b)
Compare two files and determine if they are the same.
|
Iterator |
getAllFiles(int isolateId) |
SourceFile |
getFile(int i) |
SourceFile |
getFile(int i,
int isolateId) |
SourceFile[] |
getFileList() |
SourceFile[] |
getFileList(int isolateId) |
SourceFile[] |
getFiles(String matchString)
Return a array of SourceFiles whose names match
the specified string.
|
SourceFile[] |
getFiles(String matchString,
int isolateId) |
SwfInfo |
getSwfFilter() |
SwfInfo[] |
getSwfs(int isolateId) |
SwfInfo[] |
getSwfsIsolate(int isolateId) |
boolean |
inFileList(SourceFile f)
Determine if the given SourceFile is in the current fileList
|
boolean |
isSwfFilterOn() |
static String |
nameOfSwf(SwfInfo e) |
void |
setDirty() |
boolean |
setSwfFilter(String swfName)
Attempt to set a swf as a filter
for the file list that we create
|
static String |
shortNameOfSwf(SwfInfo e) |
SourceFile |
similarFileInSwf(SwfInfo info,
SourceFile f)
Given the URL of a specfic swf determine
if there is a file within it that appears
to be the same as the given source file
|
SwfInfo |
swfForFile(SourceFile f,
int isolateId)
Given a SourceFile locate the swf which it came from
|
void |
unbind() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public void bind(Session s)
public void unbind()
public SourceFile getFile(int i)
public SourceFile getFile(int i, int isolateId)
public SourceFile[] getFileList()
public SourceFile[] getFileList(int isolateId)
public Iterator getAllFiles(int isolateId)
public SwfInfo getSwfFilter()
public boolean isSwfFilterOn()
public void setDirty()
public boolean inFileList(SourceFile f)
public boolean setSwfFilter(String swfName)
public SwfInfo[] getSwfs(int isolateId)
public SwfInfo[] getSwfsIsolate(int isolateId)
public SwfInfo swfForFile(SourceFile f, int isolateId)
public SourceFile similarFileInSwf(SwfInfo info, SourceFile f) throws InProgressException
f
- InProgressException
public int compare(SourceFile o1, SourceFile o2)
compare
in interface Comparator<SourceFile>
public boolean filesMatch(SourceFile a, SourceFile b)
a
- first file to compareb
- second file to comparepublic SourceFile[] getFiles(String matchString)
public SourceFile[] getFiles(String matchString, int isolateId)
Copyright © 2016 The Apache Software Foundation. All rights reserved.