EDIAttachment Type

This describes the file being attached.

Remarks

Information about the file's location that is being attached to the message is contained here.

Fields

ContentType
String

The MIME content-type of this EDIAttachment.

Data
String

This field contains the attachment data.

In a receiver, the class decodes the attachment to the Data field when Data's value is first queried. This field will contain the full decrypted text of the attachment.

DataB
byte[]

This field contains the attachment data.

In a receiver, the class decodes the attachment to the Data field when Data's value is first queried. This field will contain the full decrypted text of the attachment.

Filename
String

The file name of the attachment. If IncomingDirectory has been specified, the attachment will be written to the specified directory and the name will be provided by this field. Otherwise, this will contain the name of the attachment as described in the Headers.

Headers
String

The class fills out Headers each time any of the other fields for that EDIAttachment are changed. If additional headers are needed they should be appended after all the other fields for that EDIAttachment are set.

InputStream
java.io.InputStream

If InputStream is specified, the data from the stream specified will be used for the EDI attachment.

Name
String

Name is the final name to be associated with the contents of either the Data or Filename fields. This corresponds to the filename attribute of the Content-Disposition header for this attachment.

OutputStream
java.io.OutputStream

The class decodes the attachment of Message when This field's value is first set, and writes the decoded attachment to the stream.

Constructors

public EDIAttachment();



public EDIAttachment(String filename);



public EDIAttachment(String filename, String contentType);



public EDIAttachment(String filename, String contentType, String headers);



Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Java Edition - Version 20.0 [Build 8203]