Java org.apache.commons.fileupload MultipartStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.fileupload MultipartStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.fileupload MultipartStream.

The text is from its open source code.

Constructor

MultipartStream(InputStream input, byte[] boundary)

Constructs a MultipartStream with a default size buffer.

Method

intdiscardBodyData()

Reads body-data from the current encapsulation and discards it.

intreadBodyData(OutputStream output)

Reads body-data from the current encapsulation and writes its contents into the output Stream.

booleanreadBoundary()
Skips a boundary token, and checks whether more encapsulations are contained in the stream.
StringreadHeaders()

Reads the header-part of the current encapsulation.

voidsetBoundary(byte[] boundary)

Changes the boundary token used for partitioning the stream.

voidsetHeaderEncoding(String encoding)
Specifies the character encoding to be used when reading the headers of individual parts.
booleanskipPreamble()
Finds the beginning of the first encapsulation.