FileDocCategorySizeDatePackage
BODY.javaAPI DocJavaMail 1.4.32994Tue Nov 17 10:38:10 GMT 2009com.sun.mail.imap.protocol

BODY

public class BODY extends Object implements Item
The BODY fetch response item.
author
John Mani

Fields Summary
static final char[]
name
public int
msgno
public ByteArray
data
public String
section
public int
origin
Constructors Summary
public BODY(FetchResponse r)
Constructor


          
         
	msgno = r.getNumber();

	r.skipSpaces();

	int b;
	while ((b = r.readByte()) != ']") { // skip section
	    if (b == 0)
		throw new ParsingException(
			"BODY parse error: missing ``]'' at section end");
	}

	
	if (r.readByte() == '<") { // origin
	    origin = r.readNumber();
	    r.skip(1); // skip '>';
	}

	data = r.readByteArray();
    
Methods Summary
public com.sun.mail.iap.ByteArraygetByteArray()

	return data;
    
public java.io.ByteArrayInputStreamgetByteArrayInputStream()

	if (data != null)
	    return data.toByteArrayInputStream();
	else
	    return null;