public class AttachmentStreamTO extends AttachmentTO
AttachmentStreamTO will be an attachment based on an input stream. The stream will be
closed as soon one write method as been called.| Constructor and Description |
|---|
AttachmentStreamTO(InputStream inputStream) |
AttachmentStreamTO(InputStream inputStream,
AttachmentStatus status) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(InputStream inputStream)
Close the stream
|
protected InputStream |
open()
Open the inputstream
|
getContentLength, getMetadata, getNoteId, getProperties, getStatus, getUploadDate, getUploaderId, sendInResponse, setContentLength, setMetadata, setNoteId, setProperties, setStatus, setUploadDate, setUploaderId, setVirusScanner, toString, write, write, write, writecopypublic AttachmentStreamTO(InputStream inputStream)
inputStream - the input stream to usepublic AttachmentStreamTO(InputStream inputStream, AttachmentStatus status)
inputStream - the inputstream to usestatus - the status to use, can be nullprotected void close(InputStream inputStream) throws IOException
close in class AttachmentTOinputStream - the input streamIOException - in case of an io errorprotected InputStream open() throws StreamAlreadyClosedExcpetion
open in class AttachmentTOStreamAlreadyClosedExcpetionCopyright © 2019 Communote team. All rights reserved.