Package org.codice.ddf.attachment
Interface AttachmentParser
public interface AttachmentParser
This code is experimental. While this interface is functional and tested, it may change or be
removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAttachmentInfo(InputStream stream, String contentType, String submittedFilename) Generate attachment details, which includes a generated filename based on the submitted filename (optional) and content-type (optional).
-
Method Details
-
generateAttachmentInfo
AttachmentInfo generateAttachmentInfo(InputStream stream, @Nullable String contentType, @Nullable String submittedFilename) Generate attachment details, which includes a generated filename based on the submitted filename (optional) and content-type (optional). Also checks that the stream is readable.- Parameters:
stream-contentType-submittedFilename-- Returns:
- attachment details
-