IAttachment

public interface IAttachment

Represents a common attachment interface

Methods

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

getName()

public abstract String getName()

Gets or sets an attachment name

Returns: java.lang.String

setName(String value)

public abstract void setName(String value)

Gets or sets an attachment name

Parameters:

Parameter Type Description
value java.lang.String

save(String fileName)

public abstract void save(String fileName)

Saves attachment to file

Parameters:

Parameter Type Description
fileName java.lang.String A file name

save(OutputStream stream)

public abstract void save(OutputStream stream)

Saves an attachment to stream

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to