org.eclipse.jetty.util
类 MultiPartOutputStream

java.lang.Object
  继承者 java.io.OutputStream
      继承者 java.io.FilterOutputStream
          继承者 org.eclipse.jetty.util.MultiPartOutputStream
所有已实现的接口:
Closeable, Flushable

public class MultiPartOutputStream
extends FilterOutputStream

Handle a multipart MIME response.


字段摘要
static String MULTIPART_MIXED
           
static String MULTIPART_X_MIXED_REPLACE
           
 
从类 java.io.FilterOutputStream 继承的字段
out
 
构造方法摘要
MultiPartOutputStream(OutputStream out)
           
 
方法摘要
 void close()
          End the current part.
 String getBoundary()
           
 OutputStream getOut()
           
 void startPart(String contentType)
          Start creation of the next Content.
 void startPart(String contentType, String[] headers)
          Start creation of the next Content.
 void write(byte[] b, int off, int len)
           
 
从类 java.io.FilterOutputStream 继承的方法
flush, write, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

MULTIPART_MIXED

public static String MULTIPART_MIXED

MULTIPART_X_MIXED_REPLACE

public static String MULTIPART_X_MIXED_REPLACE
构造方法详细信息

MultiPartOutputStream

public MultiPartOutputStream(OutputStream out)
                      throws IOException
抛出:
IOException
方法详细信息

close

public void close()
           throws IOException
End the current part.

指定者:
接口 Closeable 中的 close
覆盖:
FilterOutputStream 中的 close
抛出:
IOException - IOException

getBoundary

public String getBoundary()

getOut

public OutputStream getOut()

startPart

public void startPart(String contentType)
               throws IOException
Start creation of the next Content.

抛出:
IOException

startPart

public void startPart(String contentType,
                      String[] headers)
               throws IOException
Start creation of the next Content.

抛出:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
覆盖:
FilterOutputStream 中的 write
抛出:
IOException


Copyright © 2013. All Rights Reserved.