IAttachment

public interface IAttachment

Represents a common attachment interface

Methods

MethodDescription
getName()Gets or sets an attachment name
save(OutputStream stream)Saves an attachment to stream
save(String fileName)Saves attachment to file
setName(String value)Gets or sets an attachment name

getName()

public abstract String getName()

Gets or sets an attachment name

Returns: java.lang.String

save(OutputStream stream)

public abstract void save(OutputStream stream)

Saves an attachment to stream

Parameters:

ParameterTypeDescription
streamjava.io.OutputStreamA stream to save to

save(String fileName)

public abstract void save(String fileName)

Saves attachment to file

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringA file name

setName(String value)

public abstract void setName(String value)

Gets or sets an attachment name

Parameters:

ParameterTypeDescription
valuejava.lang.String