com.sap.hana.di.parameter.FileWithContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hdi Show documentation
Show all versions of hdi Show documentation
A client library for interacting with the SAP HANA Deployment Infrastructure
package com.sap.hana.di.parameter;
/**
* Representation of a file for writing it to the HDI work filesystem
* A file path can never be empty or terminated with a slash.
* Examples: "file.suffix", "dir1/dir2/file.suffix"
*/
public final class FileWithContent extends PathWithContent
{
public FileWithContent(String path, String content)
{
super(path, content);
if (path.isEmpty() || path.endsWith("/"))
{
throw new IllegalArgumentException(path + " is a folder");
}
}
}