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

com.softicar.platform.common.io.file.LocalFile Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.io.file;

import java.io.File;
import java.io.InputStream;

public class LocalFile implements IFile {

	private final File file;
	private final IPath path;

	public LocalFile(File file) {

		this.file = file;
		this.path = Path.parse(file.getAbsolutePath());
	}

	@Override
	public String getName() {

		return file.getName();
	}

	@Override
	public IPath getPath() {

		return path;
	}

	@Override
	public InputStream getInputStream() {

		return FileInputStreamFactory.create(file);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy