Class DefaultPackageProperties
java.lang.Object
org.apache.jackrabbit.vault.packaging.impl.PackagePropertiesImpl
org.apache.jackrabbit.vault.packaging.impl.DefaultPackageProperties
- All Implemented Interfaces:
PackageProperties
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.vault.packaging.PackageProperties
MF_KEY_IMPORT_PACKAGE, MF_KEY_PACKAGE_DEPENDENCIES, MF_KEY_PACKAGE_DEPENDENCIES_LOCATIONS, MF_KEY_PACKAGE_DESC, MF_KEY_PACKAGE_ID, MF_KEY_PACKAGE_ROOTS, MF_KEY_PACKAGE_TYPE, NAME_AC_HANDLING, NAME_ALLOW_INDEX_DEFINITIONS, NAME_BUILD_COUNT, NAME_CND_PATTERN, NAME_CREATED, NAME_CREATED_BY, NAME_DEPENDENCIES, NAME_DEPENDENCIES_LOCATIONS, NAME_DESCRIPTION, NAME_DISABLE_INTERMEDIATE_SAVE, NAME_GENERATOR, NAME_GROUP, NAME_LAST_MODIFIED, NAME_LAST_MODIFIED_BY, NAME_LAST_WRAPPED, NAME_LAST_WRAPPED_BY, NAME_NAME, NAME_PACKAGE_TYPE, NAME_REQUIRES_RESTART, NAME_REQUIRES_ROOT, NAME_SUB_PACKAGE_HANDLING, NAME_USE_BINARY_REFERENCES, NAME_VERSION, PREFIX_INSTALL_HOOK -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NotNull DefaultPackagePropertiesReads package properties from a file.static @NotNull DefaultPackagePropertiesfromInputStream(InputStream input) Reads package properties from an input stream.protected Propertiesprotected static PropertiesgetPropertiesMap(InputStream input) inthashCode()toString()Methods inherited from class org.apache.jackrabbit.vault.packaging.impl.PackagePropertiesImpl
getACHandling, getBuildCount, getCachedId, getCreated, getCreatedBy, getDateProperty, getDependencies, getDependenciesLocations, getDescription, getExternalHooks, getGenerator, getId, getLastModified, getLastModifiedBy, getLastWrapped, getLastWrappedBy, getPackageType, getProperty, getSubPackageHandling, requiresRestart, requiresRoot
-
Method Details
-
fromFile
Reads package properties from a file.- Parameters:
path- the path from which to read package properties- Returns:
- the package properties deserialized from the given file
- Throws:
IOException- in case deserializing from the file failed
-
fromInputStream
@NotNull public static @NotNull DefaultPackageProperties fromInputStream(InputStream input) throws IOException Reads package properties from an input stream.The specified stream remains open after this method returns.
- Parameters:
input- the input from which to generate the package properties- Returns:
- the package properties deserialized from the given input
- Throws:
IOException- in case deserializing from the input stream failed
-
getPropertiesMap
- Specified by:
getPropertiesMapin classPackagePropertiesImpl
-
getPropertiesMap
protected static Properties getPropertiesMap(InputStream input) throws InvalidPropertiesFormatException, IOException -
hashCode
public int hashCode() -
equals
-
toString
-