Package org.pkl.core.packages
Interface PackageResolver
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface PackageResolver extends java.io.Closeable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddownloadPackage(PackageUri uri, @Nullable Checksums checksums, boolean noTransitive)byte[]getBytes(PackageAssetUri uri, boolean allowDirectories, @Nullable Checksums checksums)Reads the byte contents of the resource within a package.DependencyMetadatagetDependencyMetadata(PackageUri uri, @Nullable Checksums checksums)Pair<DependencyMetadata,Checksums>getDependencyMetadataAndComputeChecksum(PackageUri packageUri)static PackageResolvergetInstance(SecurityManager securityManager, @Nullable java.nio.file.Path cachedDir)booleanhasElement(PackageAssetUri uri, @Nullable Checksums checksums)java.util.List<PathElement>listElements(PackageAssetUri uri, @Nullable Checksums checksums)
-
-
-
Method Detail
-
getInstance
static PackageResolver getInstance(SecurityManager securityManager, @Nullable java.nio.file.Path cachedDir)
-
getDependencyMetadata
DependencyMetadata getDependencyMetadata(PackageUri uri, @Nullable Checksums checksums) throws java.io.IOException, SecurityManagerException
- Throws:
java.io.IOExceptionSecurityManagerException
-
getDependencyMetadataAndComputeChecksum
Pair<DependencyMetadata,Checksums> getDependencyMetadataAndComputeChecksum(PackageUri packageUri) throws java.io.IOException, SecurityManagerException
- Throws:
java.io.IOExceptionSecurityManagerException
-
downloadPackage
void downloadPackage(PackageUri uri, @Nullable Checksums checksums, boolean noTransitive) throws javax.naming.OperationNotSupportedException, java.io.IOException, SecurityManagerException
- Throws:
javax.naming.OperationNotSupportedExceptionjava.io.IOExceptionSecurityManagerException
-
getBytes
byte[] getBytes(PackageAssetUri uri, boolean allowDirectories, @Nullable Checksums checksums) throws java.io.IOException, SecurityManagerException
Reads the byte contents of the resource within a package.- Throws:
java.io.IOExceptionSecurityManagerException
-
listElements
java.util.List<PathElement> listElements(PackageAssetUri uri, @Nullable Checksums checksums) throws java.io.IOException, SecurityManagerException
- Throws:
java.io.IOExceptionSecurityManagerException
-
hasElement
boolean hasElement(PackageAssetUri uri, @Nullable Checksums checksums) throws java.io.IOException, SecurityManagerException
- Throws:
java.io.IOExceptionSecurityManagerException
-
-