com.genexus.fileupload.FileItemStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxwrapperjakarta Show documentation
Show all versions of gxwrapperjakarta Show documentation
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