Package totalcross.net.mail
Class BinaryContentHandler
- java.lang.Object
-
- totalcross.net.mail.DataContentHandler
-
- totalcross.net.mail.BinaryContentHandler
-
public class BinaryContentHandler extends DataContentHandler
Implementation of DataContentHandler that handles MIME types handled as base64 encoded byte arrays.
It also handle Streams, reading from the input stream on demand to avoid excessive memory load. This will usually be slower than reading the whole content of the stream to a byte array and using it as the Part content.- Since:
- TotalCross 1.13
-
-
Constructor Summary
Constructors Constructor Description BinaryContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteTo(java.lang.Object obj, java.lang.String mimeType, Stream stream)
-
-
-
Method Detail
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String mimeType, Stream stream) throws IOException- Specified by:
writeToin classDataContentHandler- Throws:
IOException
-
-