Revision 1405 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/packageutils/PackageManager.java

View differences:

PackageManager.java
31 31
import org.gvsig.tools.exception.BaseException;
32 32

  
33 33
public interface PackageManager {
34
	
34

  
35 35
	public static final String PACKAGE_EXTENSION = ".gvspkg";
36
	
36

  
37 37
	/**
38 38
	 * Package state default values.
39 39
	 */
......
57 57
		static final String ALL = "all";
58 58
		static final String LINUX = "lin";
59 59
		static final String WINDOWS = "win";
60
		static final String OSX_10_4 = "osx_10_4";
61
		static final String OSX_10_5 = "osx_10_5";
62
		static final String OSX_10_6 = "osx_10_6";
63
		static final String OSX_10_7 = "osx_10_7";
64
		static final String OSX_10_8 = "osx_10_8";
65
		static final String OSX_10_9 = "osx_10_9";
60
		static final String OSX = "osx";
61
		static final String OSX_10_4 = "osx";
62
		static final String OSX_10_5 = "osx";
63
		static final String OSX_10_6 = "osx";
64
		static final String OSX_10_7 = "osx";
65
		static final String OSX_10_8 = "osx";
66
		static final String OSX_10_9 = "osx";
66 67
	}
67 68

  
68 69
	/**
......
89 90

  
90 91
	/**
91 92
	 * Create a empty Version instance
92
	 * 
93
	 *
93 94
	 * @return the version
94 95
	 */
95 96
	public Version createVersion();
......
97 98

  
98 99
	/**
99 100
	 * Create a empty PackageInfo instance
100
	 * 
101
	 *
101 102
	 * @return the package info
102 103
	 */
103 104
	public PackageInfo createPackageInfo();
104
	
105

  
105 106
	/**
106 107
	 * Create a PackageInfo and load contents from the specified InputStream using the
107 108
	 * default reader.
108
	 * 
109
	 *
109 110
	 * @param packegeinfo as URL
110 111
	 * @return the created packageInfo
111
	 * @throws BaseException 
112
	 * @throws BaseException
112 113
	 */
113 114
	public PackageInfo createPackageInfo(InputStream packegeinfo) throws BaseException;
114 115

  
......
116 117

  
117 118
	/**
118 119
	 * Create a empty dependency object.
119
	 * 
120
	 *
120 121
	 * @return the dependency
121 122
	 */
122 123
	public Dependency createDependency();
123 124

  
124 125
	/**
125 126
	 * Create a dependency instance with the data of the package.
126
	 * 
127
	 *
127 128
	 * @param packageInfo
128 129
	 * @return a dependency of the package
129 130
	 */
130 131
	public Dependency createDependency(PackageInfo packageInfo);
131
	
132

  
132 133
	public Dependencies createDependencies();
133 134

  
134 135
	/**
135 136
	 * Return the OS code of the system
136
	 * 
137
	 *
137 138
	 * @return os code of the system
138 139
	 */
139 140
	public String getOperatingSystem();
140 141

  
141 142
	/**
142 143
	 * Returns the Architecture code of the system
143
	 * 
144
	 *
144 145
	 * @return architecture code of the system
145 146
	 */
146 147
	public String getArchitecture();
147
	
148 148

  
149

  
149 150
	public void writePacakgeInfo(PackageInfo packageInfo, File file) throws IOException ;
150 151

  
151 152
	public void writePacakgeInfo(PackageInfo pkg, OutputStream os) throws IOException ;
152
	
153

  
153 154
	public void readPacakgeInfo(PackageInfo packageInfo, File file) throws IOException ;
154 155

  
155 156
	public void readPacakgeInfo(PackageInfo pkg, InputStream os) throws IOException ;

Also available in: Unified diff