View Javadoc

1   
2   package org.catacomb.dataview.read;
3   
4   import org.catacomb.report.E;
5   
6   
7   import java.io.File;
8   
9   
10  public class JarImportContext extends FUImportContext {
11  
12  
13      FUImportContext rootContext;
14  
15      CustomJarReader customJarReader;
16  
17  
18      public JarImportContext(FUImportContext fic) {
19          rootContext = fic;
20      }
21  
22      public void setJarReader(CustomJarReader cjr) {
23          customJarReader = cjr;
24      }
25  
26      public boolean hasRelative(String sr) {
27          return customJarReader.hasRelative(sr);
28      }
29  
30  
31      public Object getRelative(String rp) {
32          return customJarReader.getRelative(rp);
33      }
34  
35  
36      public File getRelativeFile(String sr) {
37          E.missing();
38          return null; // MISSING
39      }
40  
41  
42      public ContentReader getRelativeReader(String sr) {
43          E.error("get rel reader returns null in jar import context");
44  
45          return null; // customJarReader.getRelativeReader(sr);
46      }
47  
48  
49      public String getExtensionRelativeName(String ext) {
50          return null;
51      }
52  
53  
54  
55  }