COM.claymoresystems.util

Class RFC822Hdr

public class RFC822Hdr extends Object

An RFC822Hdr is a single RFC822 style header. This is a colon delimited header of the form Name: value (,value2)*. A header can be folded across multiple lines by using whitespace characters at the beginning of the continuation line.
Constructor Summary
RFC822Hdr(BufferedReader rdr)
Create an RFC822Hdr by reading from the indicated reader
RFC822Hdr(String str)
Create an RFC822Hdr from the indicated string
Method Summary
StringgetName()
Return the field name
StringgetSubfield(int index)
VectorgetSubfields()
Return the field value parsed as if it were a comma-delimited string.
StringgetValue()
Return the field value

Constructor Detail

RFC822Hdr

public RFC822Hdr(BufferedReader rdr)
Create an RFC822Hdr by reading from the indicated reader

RFC822Hdr

public RFC822Hdr(String str)
Create an RFC822Hdr from the indicated string

Method Detail

getName

public String getName()
Return the field name

getSubfield

public String getSubfield(int index)

getSubfields

public Vector getSubfields()
Return the field value parsed as if it were a comma-delimited string. Syntactic sugar

getValue

public String getValue()
Return the field value
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.