Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: cea334e9283ddd51541fe1f79f1bae6542fb6b27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*******************************************************************************
 * Copyright (c) 2001, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.j2ee.commonarchivecore.internal;



import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

import org.eclipse.emf.common.util.EList;

/**
 * @generated
 */
public interface Container extends File {

	/**
	 * Indicate whether the archive contains a file having a relative path of the parameter; the uri
	 * may or may not have a leading separator
	 */
	public boolean containsFile(String uri);

	/**
	 * Return the absolute path of the file from its load strategy, if it is known. Should be used
	 * mainly for read-only runtime purposes, as edit-time modifications may make the result
	 * undefined.
	 * 
	 * @throws FileNotFoundException
	 *             if the archive is "virtual", eg, a nested jar
	 */
	public String getAbsolutePath() throws FileNotFoundException;

	public File getFile(String uri) throws FileNotFoundException;

	public InputStream getInputStream(String uri) throws FileNotFoundException, IOException;

	/**
	 * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM)
	 * 
	 * @return com.ibm.etools.archive.LoadStrategy
	 */
	public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy getLoadStrategy();

	/**
	 * Indicates whether the archive has ever had its files enumerated; used as an optimization
	 */
	public boolean isIndexed();

	/**
	 * Goes directly to the strategy
	 */
	public InputStream primGetInputStream(String uri) throws FileNotFoundException, IOException;

	public void rebuildFileIndex();

	/**
	 * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM)
	 * 
	 * @param newLoadStrategy
	 *            com.ibm.etools.archive.LoadStrategy
	 */
	public void setLoadStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy newLoadStrategy);

	/**
	 * @generated This field/method will be replaced during code generation
	 * @return The list of Files references
	 */
	EList getFiles();

	/**
	 * Clears the list of files in this Container and drops the index
	 */
	public void clearFiles();
}

Back to the top