FileDocCategorySizeDatePackage
BODY.javaAPI DocGlassfish v2 API3058Mon May 14 15:28:44 BST 2007com.sun.mail.imap.protocol

BODY

public class BODY extends Object implements Item
The BODY fetch response item.
version
1.9, 07/05/04
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;