org.eclipse.jetty.util
类 MultiPartWriter

java.lang.Object
  继承者 java.io.Writer
      继承者 java.io.FilterWriter
          继承者 org.eclipse.jetty.util.MultiPartWriter
所有已实现的接口:
Closeable, Flushable, Appendable

public class MultiPartWriter
extends FilterWriter

Handle a multipart MIME response.


字段摘要
static String MULTIPART_MIXED
           
static String MULTIPART_X_MIXED_REPLACE
           
 
从类 java.io.FilterWriter 继承的字段
out
 
从类 java.io.Writer 继承的字段
lock
 
构造方法摘要
MultiPartWriter(Writer out)
           
 
方法摘要
 void close()
          End the current part.
 void endPart()
          end creation of the next Content.
 String getBoundary()
           
 void startPart(String contentType)
          Start creation of the next Content.
 void startPart(String contentType, String[] headers)
          Start creation of the next Content.
 
从类 java.io.FilterWriter 继承的方法
flush, write, write, write
 
从类 java.io.Writer 继承的方法
append, append, append, 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
构造方法详细信息

MultiPartWriter

public MultiPartWriter(Writer out)
                throws IOException
抛出:
IOException
方法详细信息

close

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

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

getBoundary

public String getBoundary()

startPart

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

抛出:
IOException

endPart

public void endPart()
             throws IOException
end creation of the next Content.

抛出:
IOException

startPart

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

抛出:
IOException


Copyright © 2013. All Rights Reserved.