Class DataSourceProvider.SequencedDataSource
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.DataSourceProvider.SequencedDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
- Enclosing class:
- DataSourceProvider
protected static class DataSourceProvider.SequencedDataSource extends java.lang.Object implements javax.activation.DataSource
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
byteBuffer
private int
byteBufferLength
private int
byteBufferOffset
private java.io.File
tempFile
private java.lang.String
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
SequencedDataSource(byte[] byteBuffer, int byteBufferOffset, int byteBufferLength, java.io.File tempFile, java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
java.io.InputStream
getInputStream()
java.lang.String
getName()
java.io.OutputStream
getOutputStream()
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfacejavax.activation.DataSource
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfacejavax.activation.DataSource
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejavax.activation.DataSource
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfacejavax.activation.DataSource
- Throws:
java.io.IOException
-
-