Package com.isode.x400.highlevel
Class BodypartTeletex
java.lang.Object
com.isode.x400.highlevel.Bodypart
com.isode.x400.highlevel.BodypartTeletex
This class represents a Teletex bodypart.
general-text body part containing arbitrary character sets. Can only be used as a Body part object. Must set the character set codes in the parameters, and the correct escape sequences to switch in the character sets in the data.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.isode.x400.highlevel.Bodypart
Bodypart.Bodypart_Type -
Field Summary
Fields inherited from class com.isode.x400.highlevel.Bodypart
bodypart_size, bodypart_type -
Constructor Summary
ConstructorsConstructorDescriptionBodypartTeletex(BodyPart bp_obj) Constructor based on an existing bodypart object, for example, one read from an existing message.Constructor based on data provided by the user -
Method Summary
Modifier and TypeMethodDescriptionintgetSize()Returns the size, in bytes, of the message bodypart.Returns the string representation of this message bodypart.Returns the content of this Teletex bodypartvoidSave this Bodypart to a file.voidsetContentFromFile(String file) Sets the content of this Teletex bodypartvoidsetSize(int s) Sets the size of message bodypart in bytes.voidsetTextContent(String ct) Sets the content of this Teletex bodypartMethods inherited from class com.isode.x400.highlevel.Bodypart
getBodypartObject, getByteParam, getIntParam, getStringParam, getType, getTypeAsString, setByteParam, setIntParam, setStringParam
-
Constructor Details
-
BodypartTeletex
Constructor based on an existing bodypart object, for example, one read from an existing message.- Parameters:
bp_obj-- Throws:
X400APIException
-
BodypartTeletex
Constructor based on data provided by the user- Parameters:
ct-- Throws:
X400APIException
-
-
Method Details
-
getTextContent
Returns the content of this Teletex bodypart- Throws:
X400APIException
-
setTextContent
Sets the content of this Teletex bodypart- Parameters:
ct-- Throws:
X400APIException
-
setContentFromFile
Sets the content of this Teletex bodypart- Parameters:
file-- Throws:
X400APIException
-
getStringRepresentation
Returns the string representation of this message bodypart.- Throws:
X400APIException
-
getSize
public int getSize()Returns the size, in bytes, of the message bodypart.- Overrides:
getSizein classBodypart- Throws:
X400APIException
-
setSize
public void setSize(int s) Sets the size of message bodypart in bytes. -
saveBP
Description copied from class:BodypartSave this Bodypart to a file. Only a subset of supported bodyparts can be saved to a file at present. These include:
BODYPART_IA5_TEXT
BODYPART_BINARY
BODYPART_FTBP- Overrides:
saveBPin classBodypart- Parameters:
filename- : the file where to save the bodypart- Throws:
X400APIException
-