71 |
*/ |
*/ |
72 |
private Manifest manifest; |
private Manifest manifest; |
73 |
|
|
74 |
/** Wether to verify the manifest and all entries. */ |
/** Whether to verify the manifest and all entries. */ |
75 |
private boolean verify; |
private boolean verify; |
76 |
|
|
77 |
/** Wether the has already been loaded. */ |
/** Whether the has already been loaded. */ |
78 |
private boolean manifestRead = false; |
private boolean manifestRead = false; |
79 |
|
|
80 |
// Constructors |
// Constructors |
109 |
FileNotFoundException, IOException |
FileNotFoundException, IOException |
110 |
{ |
{ |
111 |
super(fileName); |
super(fileName); |
112 |
|
if (verify) { |
113 |
|
manifest = readManifest(); |
114 |
|
verify(); |
115 |
|
} |
116 |
} |
} |
117 |
|
|
118 |
/** |
/** |
145 |
IOException |
IOException |
146 |
{ |
{ |
147 |
super(file); |
super(file); |
148 |
|
if (verify) { |
149 |
|
manifest = readManifest(); |
150 |
|
verify(); |
151 |
|
} |
152 |
} |
} |
153 |
|
|
154 |
/** |
/** |
173 |
FileNotFoundException, IOException, IllegalArgumentException |
FileNotFoundException, IOException, IllegalArgumentException |
174 |
{ |
{ |
175 |
super(file, mode); |
super(file, mode); |
176 |
|
if (verify) { |
177 |
|
manifest = readManifest(); |
178 |
|
verify(); |
179 |
|
} |
180 |
} |
} |
181 |
|
|
182 |
// Methods |
// Methods |
208 |
if (manEntry != null) |
if (manEntry != null) |
209 |
{ |
{ |
210 |
InputStream in = super.getInputStream(manEntry); |
InputStream in = super.getInputStream(manEntry); |
211 |
|
manifestRead = true; |
212 |
return new Manifest(in); |
return new Manifest(in); |
213 |
} |
} |
214 |
else |
else |
215 |
{ |
{ |
216 |
|
manifestRead = true; |
217 |
return null; |
return null; |
218 |
} |
} |
219 |
} |
} |
220 |
catch (IOException ioe) |
catch (IOException ioe) |
221 |
{ |
{ |
222 |
|
manifestRead = true; |
223 |
return null; |
return null; |
224 |
} |
} |
225 |
} |
} |