package com.l7tech.common.mime;

import java.io.IOException;
import java.io.InputStream;

public interface PartInfo {
   MimeHeader getHeader(String var1);

   int getPosition();

   InputStream getInputStream(boolean var1) throws IOException, NoSuchPartException;

   byte[] getBytesIfAlreadyAvailable();

   byte[] getBytesIfAvailableOrSmallerThan(int var1) throws IOException, NoSuchPartException;

   void setBodyBytes(byte[] var1) throws IOException;

   void setBodyBytes(byte[] var1, int var2, int var3) throws IOException;

   void setContentType(ContentTypeHeader var1);

   MimeHeaders getHeaders();

   long getContentLength();

   long getActualContentLength() throws IOException, NoSuchPartException;

   ContentTypeHeader getContentType();

   String getContentId(boolean var1);

   boolean isValidated();

   void setValidated(boolean var1);

   boolean isBodyAvailable();

   boolean isBodyStashed();

   boolean isBodyRead();
}
