@Deprecated public class Attachments extends Object implements IAttachments
Constructor and Description |
---|
Attachments(IAPIConnector connector)
Deprecated.
|
Attachments(V1Connector v1connector)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getReader(String key)
Deprecated.
Getting reader
|
OutputStream |
getWriter(String key,
String contentType)
Deprecated.
Getting writer
|
void |
setWriter(String key)
Deprecated.
Setting Writer
|
public Attachments(IAPIConnector connector)
public Attachments(V1Connector v1connector)
public InputStream getReader(String key) throws ConnectionException
getReader
in interface IAttachments
key
- path to the data on serverConnectionException
- if any connection problems occurpublic OutputStream getWriter(String key, String contentType) throws ConnectionException
getWriter
in interface IAttachments
key
- path to the data on servercontentType
- Content-type of HTTP headerConnectionException
- if any connection problems occurpublic void setWriter(String key) throws ConnectionException, AttachmentLengthException
setWriter
in interface IAttachments
key
- path to the data on serverConnectionException
- if any connection problems occurAttachmentLengthException
- if connection problem occurs by attachment size is too bigCopyright © 2015 VersionOne, Inc.. All rights reserved.