Method | Description | |
---|---|---|
Run ( ) : void |
Begins executing the parser. This should be called after all handlers have been set.
|
|
StreamingMultipartFormDataParser ( Stream stream ) : System |
Initializes a new instance of the StreamingMultipartFormDataParser class with an input stream. Boundary will be automatically detected based on the first line of input.
|
|
StreamingMultipartFormDataParser ( Stream stream, |
Initializes a new instance of the StreamingMultipartFormDataParser class with the input stream and stream encoding. Boundary is automatically detected.
|
|
StreamingMultipartFormDataParser ( Stream stream, |
Initializes a new instance of the StreamingMultipartFormDataParser class with the stream, input encoding and buffer size. Boundary is automatically detected.
|
|
StreamingMultipartFormDataParser ( Stream stream, string boundary ) : System |
Initializes a new instance of the StreamingMultipartFormDataParser class with the boundary and input stream.
|
|
StreamingMultipartFormDataParser ( Stream stream, string boundary, |
Initializes a new instance of the StreamingMultipartFormDataParser class with the boundary, input stream and stream encoding.
|
|
StreamingMultipartFormDataParser ( Stream stream, string boundary, |
Initializes a new instance of the StreamingMultipartFormDataParser class with the boundary, stream, input encoding and buffer size.
|
Method | Description | |
---|---|---|
CalculateNewlineLength ( byte &data, int offset ) : int |
Calculates the length of the next found newline. data[offset] is the start of the space to search.
|
|
DetectBoundary ( |
Detects the boundary from the input stream. Assumes that the current position of the reader is the start of the file and therefore the beginning of the boundary.
|
|
FindNextNewline ( byte &data, int offset, int maxBytes ) : int |
Finds the next sequence of newlines in the input stream.
|
|
Parse ( |
Begins the parsing of the stream into objects.
|
|
ParseFilePart ( string>.Dictionary |
Parses a section of the stream that is known to be file data.
|
|
ParseParameterPart ( string>.Dictionary |
Parses a section of the stream that is known to be parameter data.
|
|
ParseSection ( |
Parses the header of the next section of the multipart stream and determines if it contains file data or parameter data.
|
|
SplitBySemicolonIgnoringSemicolonsInQuotes ( string line ) : IEnumerable |
Splits a line by semicolons but ignores semicolons in quotes.
|
public StreamingMultipartFormDataParser ( Stream stream ) : System | ||
stream | Stream | /// The stream containing the multipart data /// |
return | System |
public StreamingMultipartFormDataParser ( Stream stream, |
||
stream | Stream | /// The stream containing the multipart data /// |
encoding | /// The encoding of the multipart data /// | |
return | System |
public StreamingMultipartFormDataParser ( Stream stream, |
||
stream | Stream | /// The stream containing the multipart data /// |
encoding | /// The encoding of the multipart data /// | |
binaryBufferSize | int | /// The size of the buffer to use for parsing the multipart form data. This must be larger /// then (size of boundary + 4 + # bytes in newline). /// |
return | System |
public StreamingMultipartFormDataParser ( Stream stream, string boundary ) : System | ||
stream | Stream | /// The stream containing the multipart data /// |
boundary | string | /// The multipart/form-data boundary. This should be the value /// returned by the request header. /// |
return | System |
public StreamingMultipartFormDataParser ( Stream stream, string boundary, |
||
stream | Stream | /// The stream containing the multipart data /// |
boundary | string | /// The multipart/form-data boundary. This should be the value /// returned by the request header. /// |
encoding | /// The encoding of the multipart data /// | |
return | System |
public StreamingMultipartFormDataParser ( Stream stream, string boundary, |
||
stream | Stream | /// The stream containing the multipart data /// |
boundary | string | /// The multipart/form-data boundary. This should be the value /// returned by the request header. /// |
encoding | /// The encoding of the multipart data /// | |
binaryBufferSize | int | /// The size of the buffer to use for parsing the multipart form data. This must be larger /// then (size of boundary + 4 + # bytes in newline). /// |
return | System |