Package i2p.susi.webmail
Class MailPart
java.lang.Object
i2p.susi.webmail.MailPart
- Author:
- susi23
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Bufferfinal Stringintthe decoded length if known, else -1final Stringfinal Stringfinal Stringfinal Stringfixme never setfinal String[]final booleanfinal booleanfinal Stringfinal Stringfinal Stringthe UIDL of the mail, same for all partsfinal String -
Constructor Summary
ConstructorsConstructorDescriptionMailPart(String uidl, AtomicInteger id, Buffer readBuffer, InputStream in, ReadCounter counter, String[] hdrlines) -
Method Summary
Modifier and TypeMethodDescriptionvoidSynched because FileBuffer keeps stream openintgetID()A value unique across all the parts of this Mail, and constant across restarts, so it may be part of a bookmark.voidoutputRaw(OutputStream out) Synched because FileBuffer keeps stream open Caller must close outtoString()
-
Field Details
-
headerLines
-
type
-
encoding
-
name
-
description
-
disposition
-
charset
-
version
-
filename
fixme never set -
parts
-
multipart
public final boolean multipart -
message
public final boolean message -
buffer
-
decodedLength
public int decodedLengththe decoded length if known, else -1- Since:
- 0.9.34
-
uidl
the UIDL of the mail, same for all parts- Since:
- 0.9.33
-
-
Constructor Details
-
MailPart
public MailPart(String uidl, AtomicInteger id, Buffer readBuffer, InputStream in, ReadCounter counter, String[] hdrlines) throws IOException - Parameters:
readBuffer- has zero offset for top-level MailPart.in- used for reading (NOT readBuffer.getInputStream())counter- used for counting how much we have read. Probably the same as InputStream but a different interface.hdrlines- non-null for top-level MailPart, where they were already parsed in Mail. Null otherwise- Throws:
IOException
-
-
Method Details
-
getID
public int getID()A value unique across all the parts of this Mail, and constant across restarts, so it may be part of a bookmark.- Since:
- 0.9.34
-
decode
Synched because FileBuffer keeps stream open- Parameters:
offset- 2 for sendAttachment, 0 otherwise, probably for \r\n- Throws:
IOException- Since:
- 0.9.13
-
outputRaw
Synched because FileBuffer keeps stream open Caller must close out- Throws:
IOException- Since:
- 0.9.35
-
toString
-