Class HttpRequestParser.StaticDataSource (2.0.0)

protected static class HttpRequestParser.StaticDataSource implements DataSource

A read-only DataSource backed by a content type and a fixed byte array.

Inheritance

java.lang.Object > HttpRequestParser.StaticDataSource

Implements

DataSource

Constructors

StaticDataSource(String contentType, byte[] bytes)

public StaticDataSource(String contentType, byte[] bytes)
Parameters
Name Description
contentType String
bytes byte[]

Methods

getContentType()

public String getContentType()
Returns
Type Description
String

getInputStream()

public InputStream getInputStream()
Returns
Type Description
InputStream

getName()

public String getName()
Returns
Type Description
String

getOutputStream()

public OutputStream getOutputStream()
Returns
Type Description
OutputStream