javax.mail.internet.MimeBodyPart.getAllHeaderLines()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中javax.mail.internet.MimeBodyPart.getAllHeaderLines()方法的一些代码示例,展示了MimeBodyPart.getAllHeaderLines()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeBodyPart.getAllHeaderLines()方法的具体详情如下:
包路径:javax.mail.internet.MimeBodyPart
类名称:MimeBodyPart
方法名:getAllHeaderLines

MimeBodyPart.getAllHeaderLines介绍

[英]Get all header lines as an Enumeration of Strings. A Header line is a raw RFC 822 header line, containing both the "name" and "value" field.
[中]获取所有标题行作为字符串枚举。标题行是原始RFC 822标题行,包含“名称”和“值”字段。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: com.sun.mail/javax.mail

@Override
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: com.sun.mail/jakarta.mail

@Override
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: camunda/camunda-bpm-platform

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

public Enumeration getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: com.sun.mail/javax.mail

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

代码示例来源:origin: com.sun.mail/android-mail

@Override
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

public Enumeration getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

@Override
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
public Enumeration<String> getAllHeaderLines() throws MessagingException {
loadHeaders();
return super.getAllHeaderLines();
}

代码示例来源:origin: usnistgov/iheos-toolkit2

String getName(MimeBodyPart bp) throws java.io.IOException {
  Enumeration e;
  try {
    e = bp.getAllHeaderLines();
  } catch (javax.mail.MessagingException ex) {
    throw new java.io.IOException("cannot retrieve header lines inside getName()");
  }
  while(e.hasMoreElements()) {
    String s = (String) e.nextElement();
    int strt = s.indexOf("name=");
    if (strt != -1) {
      strt = strt+6;
      int end = s.indexOf('"',strt);
      if (end != -1) {
        return s.substring(strt,end);
      }
    }
  }
  return null;
}

代码示例来源:origin: usnistgov/iheos-toolkit2

String getName(MimeBodyPart bp) throws java.io.IOException {
  Enumeration e;
  try {
    e = bp.getAllHeaderLines();
  } catch (javax.mail.MessagingException ex) {
    throw new java.io.IOException("cannot retrieve header lines inside getName()");
  }
  while(e.hasMoreElements()) {
    String s = (String) e.nextElement();
    int strt = s.indexOf("name=");
    if (strt != -1) {
      strt = strt+6;
      int end = s.indexOf('"',strt);
      if (end != -1) {
        return s.substring(strt,end);
      }
    }
  }
  return null;
}

代码示例来源:origin: phax/as2-lib

final Enumeration <String> aHeaderLines = aPart.getAllHeaderLines ();
while (aHeaderLines.hasMoreElements ())

代码示例来源:origin: phax/as2-lib

final Enumeration <String> lines = part.getAllHeaderLines ();
while (lines.hasMoreElements ())

代码示例来源:origin: com.sun.mail/android-mail

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

代码示例来源:origin: org.glassfish.metro/webservices-extra

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

代码示例来源:origin: javax.mail/com.springsource.javax.mail

Enumeration hdrLines = super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln((String)hdrLines.nextElement());

代码示例来源:origin: com.sun.mail/jakarta.mail

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

代码示例来源:origin: jboss/jboss-javaee-specs

= super.getAllHeaderLines();
while (hdrLines.hasMoreElements())
  los.writeln(hdrLines.nextElement());

相关文章