|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.multipart.BodyPartEntity
public class BodyPartEntity
Proxy class representing the entity of a BodyPart when a
MultiPart entity is received and parsed.
Its primary purpose is to provide an input stream to retrieve the actual data. However, it also transparently deals with storing the data in a temporary disk file, if it is larger than a configurable size; otherwise, the data is stored in memory for faster processing.
| Constructor Summary | |
|---|---|
BodyPartEntity(org.jvnet.mimepull.MIMEPart mimePart)
Construct a new BodyPartEntity with a MIMEPart. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Clean up temporary file(s), if any were utilized. |
void |
close()
Defer to cleanup(). |
java.io.InputStream |
getInputStream()
Get the input stream to the raw bytes of this body part entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BodyPartEntity(org.jvnet.mimepull.MIMEPart mimePart)
BodyPartEntity with a MIMEPart.
mimePart - MIMEPart containing the input stream
of this body part entity.| Method Detail |
|---|
public java.io.InputStream getInputStream()
public void cleanup()
public void close()
throws java.io.IOException
cleanup().
close in interface java.io.Closeablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||