COM.claymoresystems.util

Class RFC822Hdr


public class RFC822Hdr
extends java.lang.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

String
getName()
Return the field name
String
getSubfield(int index)
Vector
getSubfields()
Return the field value parsed as if it were a comma-delimited string.
String
getValue()
Return the field value

Constructor Details

RFC822Hdr

public RFC822Hdr(BufferedReader rdr)
            throws IllegalArgumentException,
                   java.io.IOException
Create an RFC822Hdr by reading from the indicated reader


RFC822Hdr

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

Method Details

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.