Packages that use Buffer
Package
Description
Utility classes for the SusiMail webmail client.
The SusiMail webapp (mail.war): webmail interface with POP3 and SMTP clients over I2P and local caching.
MIME and character encoding support for SusiMail.
POP3 client (RFC 1939) for SusiMail, including APOP authentication.
Uses of Buffer in i2p.susi.util
Classes in i2p.susi.util that implement BufferModifier and TypeClassDescriptionclassBuffer implementation backed by a file.classGzip-compressed file Buffer implementation.classBuffer implementation backed by a byte array.classWrite-only Buffer implementation.classRead-only Buffer for constant data initialized from a byte array.Uses of Buffer in i2p.susi.webmail
Fields in i2p.susi.webmail declared as BufferModifier and TypeFieldDescriptionprivate BufferMail.bodyRaw body buffer.final BufferMailCache.POP3Request.bufThe buffer the fetched message is written into.final BufferMailPart.bufferThe shared mailbox buffer this part was parsed from.private BufferMail.headerRaw header buffer.Methods in i2p.susi.webmail that return BufferModifier and TypeMethodDescriptionMail.getBody()This contains the header also.MailCache.POP3Request.getBuffer()Buffer holding the fetched data.MailCache.getFullWriteBuffer(String uidl) For writing a new full mail (NOT headers only) Caller must close.Mail.getHeader()This may or may not contain the body also.private static BufferWrap a cache file in a decompressing buffer.Methods in i2p.susi.webmail with parameters of type BufferModifier and TypeMethodDescriptionvoidSynched because FileBuffer keeps stream open.(package private) static voidMail.deleteTempBodyFile(Buffer rb) Delete the backing file of a body buffer if it is a susimail-new-* temp file.voidOverridden to process attachment and Bcc headers.voidRecord the body bytes fetched from the server.voidRecord the header bytes fetched from the server.private String[]Mail.setHeader(Buffer rb, InputStream in, boolean closeIn) Parse and store the message headers.private booleanSave data to disk.voidMailCache.writeComplete(String uidl, Buffer buffer, boolean success) For writing a new full mail.Constructors in i2p.susi.webmail with parameters of type BufferModifierConstructorDescriptionMailPart(String uidl, AtomicInteger id, Buffer readBuffer, InputStream in, ReadCounter counter, String[] hdrlines) Probably the same as InputStream but a different interface.POP3Request(Mail m, boolean hOnly, Buffer buffer) Creates a request for the message's headers or full body.Uses of Buffer in i2p.susi.webmail.encoding
Methods in i2p.susi.webmail.encoding that return BufferModifier and TypeMethodDescriptionEightBit.decode(byte[] in, int offset, int length) Pass the bytes through unchanged.Encoding.decode(byte[] in) Decode a byte array using default offset and length.Encoding.decode(byte[] in, int offset, int length) Decode a portion of a byte array.Decode a buffer into another buffer.Decode a string.SevenBit.decode(byte[] in, int offset, int length) Pass the bytes through after checking they are 7-bit.We don't do any 8-bit checks like we do for decode(byte[]).Methods in i2p.susi.webmail.encoding with parameters of type BufferModifier and TypeMethodDescriptionvoidBase64.decode(InputStream in, Buffer bout) Decode base64 input into the buffer.Pass the bytes through unchanged.voidEightBit.decode(InputStream in, Buffer out) Copy in to out, unchanged.Decode a buffer into another buffer.voidDecode a buffer into another buffer using the input stream.abstract voidEncoding.decode(InputStream in, Buffer out) Decode an input stream into a buffer.voidHeaderLine.decode(InputStream in, Buffer bout) Decode all the header lines, up through \r\n\r\n, and puts them in the ReadBuffer, including the \r\n\r\n.voidHTML.decode(InputStream in, Buffer out) Decode HTML entities from the stream.voidQuotedPrintable.decode(InputStream in, Buffer bout) Decode quoted-printable input into the buffer.We don't do any 8-bit checks like we do for decode(byte[]).voidSevenBit.decode(InputStream in, Buffer out) Copy in to out, unchanged We don't do any 8-bit checks like we do for decode(byte[]).Uses of Buffer in i2p.susi.webmail.pop3
Fields in i2p.susi.webmail.pop3 declared as BufferModifier and TypeFieldDescriptionfinal BufferPOP3MailBox.SendRecv.rbBuffer holding the returned lines, non-null in LS mode only.Methods in i2p.susi.webmail.pop3 that return BufferModifier and TypeMethodDescriptionprivate BufferRetrieve message body from pop3 server (via RETR command) Caller must sync.Fetch the body.POP3MailBox.FetchRequest.getBuffer()The buffer the fetched data is read into.private BufferPOP3MailBox.getHeader(int id) Retrieves header from pop3 server (with TOP command and RETR as fallback) Caller must sync.Fetch the header.private BufferTries twice Caller must sync.private BufferNo total timeout (result could be large) Caller must sync.Methods in i2p.susi.webmail.pop3 with parameters of type BufferModifier and TypeMethodDescriptionprivate BufferRetrieve message body from pop3 server (via RETR command) Caller must sync.Fetch the body.private voidPOP3MailBox.getResultNa(Buffer buffer) No total timeout (result could be large) Caller must sync.private BufferTries twice Caller must sync.private BufferNo total timeout (result could be large) Caller must sync.Constructors in i2p.susi.webmail.pop3 with parameters of type Buffer