Package com._1c.g5.v8.dt.core.library
Class LibraryUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.core.library.LibraryUtils
-
public class LibraryUtils extends Object
The library mechanism utility methods.
-
-
Constructor Summary
Constructors Constructor Description LibraryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LibraryDescriptor
getLibraryDescriptorByLibraryDependency(LibraryDependency libraryDependency, ILibraryRepository libraryRepository)
Returns the library descriptor for the specidied dependency on the library.static LibraryDependency
readLibraryDependency(InputStream manifestStream)
Reads a dependency on a library from the specified manifest.
-
-
-
Method Detail
-
readLibraryDependency
public static LibraryDependency readLibraryDependency(InputStream manifestStream) throws IOException
Reads a dependency on a library from the specified manifest.- Parameters:
manifestStream
- the stream to read the manifest; the stream should be closed by clients, cannot benull
- Returns:
- the dependency on the library, may be
null
- Throws:
IOException
- if any I/O error occurs
-
getLibraryDescriptorByLibraryDependency
public static LibraryDescriptor getLibraryDescriptorByLibraryDependency(LibraryDependency libraryDependency, ILibraryRepository libraryRepository)
Returns the library descriptor for the specidied dependency on the library. If more than one library satisfies the specified dependency, the library with the highest version is returned.- Parameters:
libraryDependency
- the dependency on the library, cannot benull
libraryRepository
- the library repository, cannot benull
- Returns:
- the library descriptor, may be
null
-
-