com.aspose.email
Class HeaderCollection

java.lang.Object
  extended by com.aspose.email.HeaderCollection
All Implemented Interfaces:
Iterable<String>

public class HeaderCollection
extends Object
implements Iterable<String>

Defines the collection of header fields


Nested Class Summary
static class HeaderCollection.KeysCollection
           
 
Constructor Summary
HeaderCollection()
           
HeaderCollection(HeaderCollection col)
           
 
Method Summary
 void add_(String name, String value)
           
 void add(HeaderCollection c)
           
 void add(MimeHeader header)
          Deprecated. 
 void add(String name, String value)
           
 void clear()
           
 void copyTo(Object[] dest, int index)
           
 String get_Item(int index)
           
 String get_Item(String name)
           
 String get(int index)
           
 String get(String name)
           
 String[] getAllKeys()
           Gets an array of strings containing all header keys in collections
 int getCount()
           Gets a count of headers
 String getKey(int index)
           
 HeaderCollection.KeysCollection getKeys()
           Gets a KeysCollection containing all header keys in collections
 String[] getValues(String name)
           
 boolean hasKeys()
           
 boolean isSynchronized()
           
 Iterator iterator()
           
 void remove(String name)
           
 void set_Item(String name, String value)
           
 void set(String name, String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderCollection

public HeaderCollection(HeaderCollection col)

HeaderCollection

public HeaderCollection()
Method Detail

getAllKeys

public String[] getAllKeys()

Gets an array of strings containing all header keys in collections


getKeys

public HeaderCollection.KeysCollection getKeys()

Gets a KeysCollection containing all header keys in collections


getCount

public int getCount()

Gets a count of headers


isSynchronized

public boolean isSynchronized()

get_Item

public String get_Item(String name)

set_Item

public void set_Item(String name,
                     String value)

get_Item

public String get_Item(int index)

clear

public void clear()

getKey

public String getKey(int index)

get

public String get(int index)

get

public String get(String name)

getValues

public String[] getValues(String name)

add_

public void add_(String name,
                 String value)

add

public void add(HeaderCollection c)

add

public void add(String name,
                String value)

add

@Deprecated
public void add(MimeHeader header)
Deprecated. 


set

public void set(String name,
                String value)

copyTo

public void copyTo(Object[] dest,
                   int index)

hasKeys

public boolean hasKeys()

remove

public void remove(String name)

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<String>


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.