Package org.subethamail.smtp.io
Class ReceivedHeaderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.subethamail.smtp.io.ReceivedHeaderStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Prepends a Received: header at the beginning of the input stream.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionReceivedHeaderStream(InputStream in, String heloHost, InetAddress host, String whoami, String softwareName, String id, String singleRecipient) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ReceivedHeaderStream
public ReceivedHeaderStream(InputStream in, String heloHost, InetAddress host, String whoami, String softwareName, String id, String singleRecipient) - Parameters:
softwareName- A software name and version, or null if this information should not be printedsingleRecipient- The single recipient of the message. If there are more than one recipients then this must be null.
-
-
Method Details
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-