com.sun.mail.iap.Argument.append()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(8.7k)|赞(0)|评价(0)|浏览(107)

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

Argument.append介绍

[英]Append the given Argument to this Argument. All items from the source argument are copied into this destination argument.
[中]将给定参数追加到此参数。源参数中的所有项都复制到此目标参数中。

代码示例

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

result.writeArgument(generateSequence(terms[0], charset));
else
  result.append(generateSequence(terms[0], charset));
  result.writeArgument(generateSequence(terms[1], charset));
  else
  result.append(generateSequence(terms[1], charset));

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

result.writeArgument(generateSequence(terms[0], charset));
else
  result.append(generateSequence(terms[0], charset));
  result.writeArgument(generateSequence(terms[1], charset));
  else
  result.append(generateSequence(terms[1], charset));

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

if (sterm != null) {
  try {
  args.append(
    getSearchSequence().generateSequence(sterm, "UTF-8"));
  } catch (IOException ioex) {

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

if (sterm != null) {
  try {
  args.append(
    getSearchSequence().generateSequence(sterm, "UTF-8"));
  } catch (IOException ioex) {

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

private static Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

private static Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument and(AndTerm term, String charset) 
    throws SearchException, IOException {
// Combine the sequences for both terms
SearchTerm[] terms = term.getTerms();
// Generate the search sequence for the first term
Argument result = generateSequence(terms[0], charset);
// Append other terms
for (int i = 1; i < terms.length; i++)
  result.append(generateSequence(terms[i], charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

private static Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

private static Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

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

protected Argument not(NotTerm term, String charset) 
    throws SearchException, IOException {
Argument result = new Argument();
// Add the NOT search-key
result.writeAtom("NOT");
/* If this term is an AND expression, we need to enclose it
 * within paranthesis. 
 *
 * AND expressions are either AndTerms or FlagTerms 
 */
SearchTerm nterm = term.getTerm();
if (nterm instanceof AndTerm || nterm instanceof FlagTerm)
  result.writeArgument(generateSequence(nterm, charset));
else
  result.append(generateSequence(nterm, charset));
return result;
}

相关文章