public class AttachedFile extends Object
Constructor and Description |
---|
AttachedFile(Path file) |
AttachedFile(String filename,
InputStream content) |
AttachedFile(String filename,
InputStream content,
long length) |
AttachedFile(String filename,
Path file) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
String |
getContentDisposition() |
MediaType |
getContentType() |
String |
getFilename() |
long |
getLength() |
String |
toString() |
public AttachedFile(String filename, InputStream content, long length)
public AttachedFile(String filename, InputStream content)
public AttachedFile(String filename, Path file) throws IOException
IOException
public AttachedFile(Path file) throws IOException
IOException
public long getLength()
public MediaType getContentType()
public String getFilename()
public String getContentDisposition()
public InputStream getContent()
Copyright © 2019. All rights reserved.