MCPcopy Create free account
hub / github.com/M66B/FairEmail / top

Method top

app/src/main/java/com/sun/mail/pop3/POP3Message.java:320–331  ·  view source on GitHub ↗

Fetch the header of the message and the first n lines of the raw content of the message. The headers and data are available in the returned InputStream. @param n number of lines of content to fetch @return InputStream containing the message headers and n content lines @exception Messa

(int n)

Source from the content-addressed store, hash-verified

318 * @exception MessagingException for failures
319 */
320 public InputStream top(int n) throws MessagingException {
321 try {
322 synchronized (this) {
323 return folder.getProtocol().top(msgnum, n);
324 }
325 } catch (EOFException eex) {
326 folder.close(false);
327 throw new FolderClosedException(folder, eex.toString());
328 } catch (IOException ex) {
329 throw new MessagingException("error getting size", ex);
330 }
331 }
332
333 /**
334 * Get all the headers for this header_name. Note that certain

Callers 6

loadHeadersMethod · 0.45
RunParserMethod · 0.45
IsEmptyNullAllowedMethod · 0.45
EndObjectMethod · 0.45
EndListMethod · 0.45

Calls 3

getProtocolMethod · 0.45
closeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected