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

com.genexus.fileupload.FileItemStream Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

The newest version!
package com.genexus.fileupload;

import java.io.IOException;
import java.io.InputStream;
import jakarta.servlet.http.Part;

public class FileItemStream implements IFileItemStream{

	Part part;

	public FileItemStream(Part part) {
		this.part = part;
	}

	public String getName() {
		return part.getSubmittedFileName();
	}

	public boolean isFormField() {
		return part.getSubmittedFileName() == null;
	}

	public InputStream openStream() throws IOException {
		return part.getInputStream();
	}

	public String getFieldName() {
		return part.getName();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy