All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.hana.di.parameter.FileWithContent Maven / Gradle / Ivy

Go to download

A client library for interacting with the SAP HANA Deployment Infrastructure

There is a newer version: 2.2.0
Show newest version
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");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy