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)
| 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 |
no test coverage detected