List of usage examples for javax.mail.internet MimePart getMatchingHeaderLines
public Enumeration<String> getMatchingHeaderLines(String[] names) throws MessagingException;
From source file:com.stimulus.archiva.store.MessageStore.java
public void writeTo(MimePart part, OutputStream os, String[] includeList) throws IOException, MessagingException { LineOutputStream los = null;/*from ww w .j av a 2 s. c om*/ if (os instanceof LineOutputStream) { los = (LineOutputStream) os; } else { los = new LineOutputStream(os); } Enumeration hdrLines = part.getMatchingHeaderLines(includeList); while (hdrLines.hasMoreElements()) { String line = (String) hdrLines.nextElement(); los.writeln(line); } los.writeln(); os = MimeUtility.encode(os, part.getEncoding()); part.getDataHandler().writeTo(os); os.flush(); }