public class MessageFileFormat extends org.adroitlogic.x.base.format.ResourceAwareMessageFormat<XMessageFileEntity>
XMessageFileEntity
as
the underlying resource.Constructor and Description |
---|
MessageFileFormat(XMessageFileEntity content) |
MessageFileFormat(org.adroitlogic.x.api.XMessage message,
FileStoreFeature fileStore)
Constructor which expects a
XMessage MessageFileFormat
by getting a file from fileStore |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Overriding equals to to ensure that any MessageFileFormat
instances that are created for the same underlying file
should be considered as the same object
|
int |
hashCode()
Overriding Hashcode to keep consistency
|
XMessageFileEntity |
readAsNative() |
InputStream |
readAsStream() |
String |
readAsString(int maxLengthKbs) |
long |
size() |
void |
writeTo(OutputStream outputStream) |
public MessageFileFormat(XMessageFileEntity content)
public MessageFileFormat(org.adroitlogic.x.api.XMessage message, FileStoreFeature fileStore) throws org.adroitlogic.x.api.IntegrationRuntimeException
XMessage
MessageFileFormat
by getting a file from fileStoremessage
- Message for attaching the release hookfileStore
- the file-store feature to be usedorg.adroitlogic.x.api.IntegrationRuntimeException
- will be thrown if a file cannot be provided by the file store at the momentpublic InputStream readAsStream()
public String readAsString(int maxLengthKbs)
public XMessageFileEntity readAsNative()
public void writeTo(OutputStream outputStream) throws IOException
IOException
public long size()
public boolean equals(Object obj)
Copyright © 2016–2019 AdroitLogic. All rights reserved.