Class DefaultPackageProperties
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.impl.PackagePropertiesImpl
-
- org.apache.jackrabbit.vault.packaging.impl.DefaultPackageProperties
-
- All Implemented Interfaces:
PackageProperties
public class DefaultPackageProperties extends PackagePropertiesImpl
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static @NotNull DefaultPackageProperties
fromFile(Path path)
Reads package properties from a file.static @NotNull DefaultPackageProperties
fromInputStream(InputStream input)
Reads package properties from an input stream.protected Properties
getPropertiesMap()
protected static Properties
getPropertiesMap(InputStream input)
int
hashCode()
String
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 Detail
-
fromFile
@NotNull public static @NotNull DefaultPackageProperties fromFile(Path path) throws IOException
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
protected Properties getPropertiesMap()
- Specified by:
getPropertiesMap
in classPackagePropertiesImpl
-
getPropertiesMap
protected static Properties getPropertiesMap(InputStream input) throws InvalidPropertiesFormatException, IOException
-
-